Laravel Custom helper is not working...

Posted 2 years ago by tisuchi

I made a custom helper function in order to use in every page in laravel, however it shows Method [getUnreadInboxMessagesForAUser] does not exist..

I have just created a custom file in App\Http\helpers.php and add in composer.json before composer dump-autoload.

"files": [

Why this method not found?

Ref: https://laracasts.com/discuss/channels/general-discussion/best-practices-for-custom-helpers-on-laravel-5

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

Reply to

Use Markdown with GitHub-flavored code blocks.