Laravel: InvalidArgumentException Error

I upload the project from the local host to a dedicated server, and after so many problems, finally domain.com | domain.com/home | domain.com/allsites etc.

But now the routes "domain.com/site/create" "domain.com/site/ID/manage", "domain.com/site/ID/edit" are not found, I get this error, why?

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

in line FileViewFinder.php 137 on
FileViewFinder-> findInPaths ('Site.create',
array ('/....../resources/views')) in the line FileViewFinder.php 79 on
FileViewFinder-> find ('Site.create') in Factory.php line 151

I try to use the commands artisan: cache: clear, route: clear, config: clear, config: cache and nothings works, I do not know where the problem is!

Works fine on localhost

+5
source share
4 answers

If your local OS is different from the OS of your production server, you may run into a case-sensitive problem and the file could not be found. make sure your file names are EXACTLY the same, case and all. This can happen, especially if one is a Mac environment and the other is Linux.

If the problem persists, click the following link. It can help you.

Laravel 5 - View [home] not found

Laravel 5.1 View Not Found

Laravel 5 InvalidArgumentException in line FileViewFinder.php 137: View [.admin] not found

+5
source

also found several times that the configuration cache is a problem. Use the following commands to fine-tune them.

php artisan config:cache php artisan config:clear 
+10
source

Try one of the following commands:

php artisan dump-autoload or composer dump-autoload

0
source

I had the same problem, but the reason was different. For me, the problem was permissions on the errors folder. In particular, the folder was not executed.

To solve the linux problem:

 $ chmod +x ../views/errors 
0
source

Source: https://habr.com/ru/post/1242509/


All Articles