A
A
AleDv2015-06-22 16:01:15
Laravel
AleDv, 2015-06-22 16:01:15

Authorization on Laravel5?

Hello. I'm learning Laravel 5 and faced the same problem.
I moved all the models to the app/Models folder, after which the attempt to authorize on the site through the AuthController fails and I get an error:

FatalErrorException in EloquentUserProvider.php line 127:
Class '\App\User' not found

Is there somewhere I can specify where all the models are lying?
I tried to register in the EloquentUserProvider.php file, but this did not solve the problem.
use \App\Models\Users;

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
JhaoDa, 2015-06-22
@AleDv

config/auth.php, key
'model' => App\Models\User::class,

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question