Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 570
Deric Lima Avatar asked Jan 30 '26 17:01

Deric Lima


1 Answers

Please use the all around cache clearing command :

php artisan optimize:clear
like image 76
Christophe Hubert Avatar answered Feb 02 '26 11:02

Christophe Hubert



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!