Laravel中的InvalidArgumentException在FileViewFinder.php的137行:

17 浏览
0 Comments

Laravel中的InvalidArgumentException在FileViewFinder.php的137行:

我想在我的Xampp本地主机上打开我几年前开发的Laravel项目。我把文件夹复制到Xampp/htdocs/myproject。我也安装了Composer和Laravel。当我在浏览器中打开该项目时,我看到以下错误:

InvalidArgumentException in FileViewFinder.php line 137:
View [index] not found.

我还尝试运行php artisan serve命令,但它没有起作用。它显示错误:

could not open input file: artisan

admin 更改状态以发布 2023年5月23日
0
0 Comments

在将项目移动到其他服务器后,最好清除应用程序缓存。尝试以下步骤 -

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

希望能帮到你。 🙂

0