Laravel 5 class not found on remote server

I have laravel 5 on a remote server and I have this error Class 'App\Libraries\CheckLang' not found

.

In CheckLang namespace App\Libraries;

in routes.phpuse App\Libraries\CheckLang;

In local mode it works, but not on remote server.

I create a myapplication folder with laravel folders and in public_html the folder files are public.

I changed index.php require __DIR__.'/../ myapplication/bootstrap/autoload.php';

$app = require_once __DIR__.'/../myapplication/bootstrap/app.php';

thank

+3


source to share


2 answers


Try the following:

composer update

      



See if this helps.

+3


source


Thanks for Ammadu, it was a capitalization problem.



0


source







All Articles