R revert migration offering
This commit is contained in:
parent
ed457199c1
commit
d3f88b30bb
|
|
@ -49,5 +49,11 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"minimum-stability": "dev",
|
"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'),
|
__DIR__.'/../config/roles.php' => $this->app->configPath('roles.php'),
|
||||||
], 'roles-config');
|
], 'roles-config');
|
||||||
|
|
||||||
$publishesMigrationsMethod = method_exists($this, 'publishesMigrations')
|
$this->publishes([
|
||||||
? 'publishesMigrations'
|
__DIR__.'/../database/migrations/create_blax_role_tables.php.stub' => $this->getMigrationFileName('create_blax_role_tables.php'),
|
||||||
: 'publishes';
|
|
||||||
|
|
||||||
$this->{$publishesMigrationsMethod}([
|
|
||||||
__DIR__.'/../database/migrations' => $this->app->databasePath('migrations'),
|
|
||||||
], 'roles-migrations');
|
], 'roles-migrations');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue