Skip to content

Commit 550414b

Browse files
committed
docs: move "Configuring to Use Your UserModel" up
1 parent 5020b54 commit 550414b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

docs/customization/user_provider.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@ php spark shield:model UserModel
1515

1616
The class name is optional. If none is provided, the generated class name would be `UserModel`.
1717

18+
## Configuring to Use Your UserModel
19+
20+
After creating the class, set your model classname to the `$userProvider` property
21+
in **app/Config/Auth.php**:
22+
23+
```php
24+
public string $userProvider = \App\Models\UserModel::class;
25+
```
26+
1827
## Customizing Your UserModel
1928

2029
Customize your model as you like.
@@ -45,12 +54,3 @@ class UserModel extends ShieldUserModel
4554
}
4655
}
4756
```
48-
49-
## Configuring to Use Your UserModel
50-
51-
After creating the class, set your model classname to the `$userProvider` property
52-
in **app/Config/Auth.php**:
53-
54-
```php
55-
public string $userProvider = \App\Models\UserModel::class;
56-
```

0 commit comments

Comments
 (0)