Skip to content
Advertisement

Heroku – View Not Found – FileFinderView InvalidArgumentException

This is consuming the last 2 days of my life. Locally everything is working fine but when my code is deployed to Heroku, Laravel can’t find the index view. It’s my understanding this is some caching issue, so I have tried most of Artisan’s commands to clean the cache:

php artisan config:cache
php artisan route:cache
php artisan view:clear
php artisan clear-compiled

This is my route, I’m serving a SPA:

Route::get('/{any}', 'HomeController@main')->where('any', '.*');

And this is the stack trace on my view: enter image description here

I have cleaned the bootstrap/cache folder and honestly I’m out of ideas. Does someone have a light on this one? Thanks

Advertisement

Answer

Please use the all around cache clearing command :

php artisan optimize:clear
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement