Answer the question
In order to leave comments, you need to log in
Laravel5 some model classes not found?
Good morning ! I am doing a project on a lara for the first time, now I uploaded it to the hosting, in the public folder I
wrote the following .htaccess file
<IfModule mod_rewrite.c>
RewriteEngine On
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>
RewriteEngine On
RewriteCond %{REQUEST_URI} !^public
RewriteRule ^ public/index.php [L]
Answer the question
In order to leave comments, you need to log in
Do you have SSH access to the server? You need to regenerate the autoload file with the artisan command. And maybe not all filled.
php artisan cache:clear
php artisan clear-compiled
php artisan optimize
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question