larabook icon indicating copy to clipboard operation
larabook copied to clipboard

FlashServiceProvider

Open wasid opened this issue 9 years ago • 1 comments

Hello Jeffrey Way,

I am following your larabook tutorials but unfortunately i am stuck with flash message tutorial because every time it shows Class 'Laracasts\Flash\FlashServiceProvider' not found in home page. I was successful till the Domain Events part. I followed as like as you in previous provider adding lessons, I faced problem regarding version mismatch as I am doing this with Laravel 4.2.17 but i managed it by downloading backdated packages of yours. But in case of FlashServiceProvider I got screwed. I add everything in providers & aliases array and also got everything including FlashServiceProvider.php file in Larabook\vendor\laracasts\flash\src\Laracasts\Flash directory after composer update but still facing the same problem.

Please help me !!!

wasid avatar Apr 20 '15 16:04 wasid

got the solution by myself from laracasts discussion section:

Go to composer.json and delete "app/models" from the autoload section. Then return to the Terminal, and run "composer dumpautoload". That'll fix it.

if anyone facing this issue hope will work.

Thanks Jeffrey Way.

wasid avatar Apr 20 '15 18:04 wasid