Skip to content

Commit bfd2569

Browse files
committed
Describe User model tuning
1 parent d12b756 commit bfd2569

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Version **2.x** is for laravel **6** or **7**. You can use branch `laravel67-rba
3636

3737
Run the composer command:
3838

39-
`composer require itstructure/laravel-rbac "^3.0.17"`
39+
`composer require itstructure/laravel-rbac "^3.0.18"`
4040

4141
### 3.2 Next internal installation steps
4242

@@ -114,7 +114,15 @@ Let's go:
114114
}
115115
```
116116

117-
3. Run command to run migrations and seeders:
117+
3. Tuning your `User` model (as shown in **4.1** point):
118+
119+
- Implement `User` model from `RbacUserInterface`.
120+
121+
- Add **roles** attribute to `$fillable`.
122+
123+
- Apply `Administrable` trait.
124+
125+
4. Run command to run migrations and seeders:
118126

119127
`php artisan rbac:database`
120128

@@ -144,7 +152,7 @@ Let's go:
144152

145153
and run command: `php artisan db:seed`.
146154

147-
4. Run command to set Admin role for user with identifier `adminUserId`, defined in **2** point:
155+
5. Run command to set Admin role for user with identifier `adminUserId`, defined in **2** point:
148156

149157
`php artisan rbac:admin`
150158

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
### CHANGE LOG:
22

3+
**3.0.18 February 28, 2025:**
4+
- Describe `User` model tuning.
5+
36
**3.0.17 February 28, 2025:**
47
- Fix grid view composer dependency. Fix README.
58

0 commit comments

Comments
 (0)