# Config changes needed (Identity model relocation)

Laravel's default `App\Models\User` has moved to `App\Domain\Identity\Models\User` to match our
domain-oriented structure (blueprint §4). Three places need updating after you scaffold the
project — none of this is optional, the app won't boot correctly otherwise:

## 1. Delete the default model
Delete `app/Models/User.php` — it's replaced by `app/Domain/Identity/Models/User.php` (provided).

## 2. `config/auth.php`
Find the `providers.users.model` line and change it:

```php
'model' => App\Domain\Identity\Models\User::class,
```

## 3. Any factory/seeder referencing `App\Models\User`
`database/factories/UserFactory.php` (Laravel's default) needs its namespace updated to
`App\Domain\Identity\Models\User` at the top of the file.

## 4. Breeze-generated controllers
`php artisan breeze:install` generates controllers under `app/Http/Controllers/Auth` that
type-hint `App\Models\User` in a couple of places (e.g. password reset). Search the generated
`app/Http/Controllers/Auth/` folder for `App\Models\User` and replace with
`App\Domain\Identity\Models\User` — there are typically 2–3 occurrences. I'll hand you the
corrected versions of these controllers directly in the next implementation step so you don't
have to hunt for them by hand.
