Error: Class 'AppModelsUser' not found in file D:teraNingamazadatvendorlaravelframeworksrcIlluminateAuthEloquentUserProvider.php on line 183 1

Error: Class ‘\App\Models\User’ not found in file D:\teraNinga\mazadat\vendor\laravel\framework\src\Illuminate\Auth\EloquentUserProvider.php on line 183

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

Here is what the above code is Doing:
1. We’re telling Laravel to use the Eloquent ORM to handle our user authentication.
2. We’re telling Laravel that our User model is located in the App\Models namespace.

Now that we’ve configured our User model, we need to create it.

Create the User Model

To create the User model, we’ll use the make:model Artisan command:

php artisan make:model Models/User

This will create a new file in the app/Models directory.

Next, we need to add the following properties to the User model:



* Reverse the migrations.
* @return void
public function down()

The up method is used to add new tables, columns, or indexes to your database, while the down method
should reverse the operations performed by the up method.

Next, we need to run the migration:

php artisan migrate

This will create the users table in your database.

Next, we need to create a

Similar Posts