R revert migration offering
This commit is contained in:
parent
ed457199c1
commit
d3f88b30bb
|
|
@ -49,5 +49,11 @@
|
|||
}
|
||||
},
|
||||
"minimum-stability": "dev",
|
||||
"prefer-stable": true
|
||||
"prefer-stable": true,
|
||||
"scripts": {
|
||||
"post-autoload-dump": [
|
||||
"@php artisan vendor:publish --tag=roles-migrations --force",
|
||||
"@php artisan vendor:publish --tag=roles-config --force"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
@ -46,14 +46,9 @@ class PermissionsServiceProvider extends \Illuminate\Support\ServiceProvider
|
|||
__DIR__.'/../config/roles.php' => $this->app->configPath('roles.php'),
|
||||
], 'roles-config');
|
||||
|
||||
$publishesMigrationsMethod = method_exists($this, 'publishesMigrations')
|
||||
? 'publishesMigrations'
|
||||
: 'publishes';
|
||||
|
||||
$this->{$publishesMigrationsMethod}([
|
||||
__DIR__.'/../database/migrations' => $this->app->databasePath('migrations'),
|
||||
$this->publishes([
|
||||
__DIR__.'/../database/migrations/create_blax_role_tables.php.stub' => $this->getMigrationFileName('create_blax_role_tables.php'),
|
||||
], 'roles-migrations');
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue