A
A
Andrey Boychenko2016-05-16 09:15:18
Laravel
Andrey Boychenko, 2016-05-16 09:15:18

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>

and at the root of the document wrote .htaccess
RewriteEngine On
RewriteCond %{REQUEST_URI} !^public
RewriteRule ^ public/index.php [L]

in the end I get an error
here you can see.
Tell me what could be the problem?
www.profocus-studio.com

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stanislav Pochepko, 2016-05-16
@DJZT

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 question

Ask a Question

731 491 924 answers to any question