VeeZ Phone
VeeZ Phone

Reputation: 427

Laravel 5.4 throughs error class app user model not found

In auth.php

providers' => [
        'users' => [
            'driver' => 'eloquent',
            'model' => App\Models\User::class,
        ],

and in models/user.php

  namespace App\Models;

but message still

Class '\App\Models\User' not found

Upvotes: 0

Views: 2007

Answers (1)

Mohammad Fanni
Mohammad Fanni

Reputation: 4173

hmmm yes you should change use App\Models; to namespace App\Models;

and use App\Models\User;

Upvotes: 1

Related Questions