How to fix Laravel error, view blade not found

Sometimes in Laravel project, when we are developing the application, we come across strange errors. One of them is, view blade not found in Laravel.

First thing first, We need to make sure, the blade.php file exist in the views directory. If the file is there, then we need to flush cache.

php artisan optimize --force
php artisan config:cache
php artisan route:cache

The reason for this error is, we have a different file name in the compiled version of Laravel application, as you can see in the above screenshot.

Leave a Comment