How to Call a static Method inside a blade in Laravel 5

Posted 4 years ago by drake24

I have problem. Usually in Laravel 4 I have views / blades that will call static functions from my Helper folder which is located at app/helpers/helper.php. class Helpers{

public static function myCustomHelper(){
        "Im a custom helper";

I can call it in my blade simple by {{ Helpers::myCustomHelper() }}. However, in Laravel 5 I get an error stating Helpers class is not found.

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.