File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -42,11 +42,11 @@ php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvid
42
42
// then, add the Spatie\P ermission\T raits\H asRoles trait to your User model(s)
43
43
```
44
44
45
- 3 ) Publish ` backpack\permissionmanager ` config file:
45
+ 3 ) Publish ` backpack\permissionmanager ` config file & the migrations :
46
46
``` bash
47
- php artisan vendor:publish --provider=" Backpack\PermissionManager\PermissionManagerServiceProvider" --tag=" config"
47
+ php artisan vendor:publish --provider=" Backpack\PermissionManager\PermissionManagerServiceProvider" --tag=" config" --tag= " migrations "
48
48
```
49
- > Note: _ We recommend you to publish only the config file, but you may also publish lang and routes._
49
+ > Note: _ We recommend you to publish only the config file and migrations , but you may also publish lang and routes._
50
50
51
51
4 ) Run the migrations:
52
52
``` bash
Original file line number Diff line number Diff line change @@ -47,8 +47,8 @@ public function boot()
47
47
// publish route file
48
48
$ this ->publishes ([__DIR__ .$ this ->routeFilePath => base_path ($ this ->routeFilePath )], 'routes ' );
49
49
50
- // load migration from Backpack 4.0 to Backpack 4.1
51
- $ this ->loadMigrationsFrom ( __DIR__ .'/database/migrations ' );
50
+ // publish migration from Backpack 4.0 to Backpack 4.1
51
+ $ this ->publishes ([ __DIR__ .'/database/migrations ' => database_path ( ' migrations ' )], ' migrations ' );
52
52
}
53
53
54
54
/**
You can’t perform that action at this time.
0 commit comments