File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ Version **2.x** is for laravel **6** or **7**. You can use branch `laravel67-rba
3636
3737Run 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments