I have tried to upgrade my project to laravel 5.4 from 5.3 today. I added
"laravel/framework": "5.4.*",
To my composer.json
and run the command composer update
and then composer dump-autoload
and then tested my project. It gives me this error:
Error:
FatalThrowableError in 2154f392745gf102547be138a945a11b58e5649203.php line 2: Call to undefined method Illuminate\View\Factory::getFirstLoop()
Did I miss something?
Clear your compiled blade views.
php artisan view:clear
php artisan cache:clear
Flush the application cache
composer dump-autoload
Generate autoload files
php artisan view:clear
Clear all compiled view files
After upgrading packages and Laravel to 5.4 , you should run **
php artisan view:clear
** to avoid the mentioned error. further more you may run **
php artisan route:clear
** to flush the route cache. Additionally , you may run
php artisan optimize
at last.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With