Reference

Laravel Reference

Move Model Classes into app/

The following assumes that you've been following this tutorial, which means that you only have one model class so far—the User model that comes by default with Laravel. It also assumes you're not using the User model anywhere other than in Laravel's auth scaffold classes.

Create new Models directory

Add a new directory: app/Models — You can put the Models directory anywhere, but inside the main app directory seems like an ideal place.

Move User.php into app/Models

Once you do this, it will break your app.

Modify files acordingly

User.php

Change the namespace at the top:

namespace App\Models

RegisterController.php

Change at top:

use App\Models\User

config/auth.php

Change in the 'providers' array:

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