Heroku - View Not Found - FileFinderView InvalidArgumentException

こ雲淡風輕ζ 提交于 2020-05-15 09:29:08

问题


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:

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


回答1:


Please use the all around cache clearing command :

php artisan optimize:clear


来源:https://stackoverflow.com/questions/61555023/heroku-view-not-found-filefinderview-invalidargumentexception

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!