File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,15 @@ php spark shield:model UserModel
1515
1616The 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
2029Customize 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- ```
You can’t perform that action at this time.
0 commit comments