feat: compatible with lumen
This commit is contained in:
parent
6b30efcc5a
commit
6a4ff69e82
|
@ -21,7 +21,9 @@
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=7.1.0",
|
"php": ">=7.1.0",
|
||||||
"laravel/framework": "~5.5|~6.0|~7.0|~8.0",
|
"illuminate/support": "~5.5|~6.0|~7.0|~8.0",
|
||||||
|
"illuminate/database": "~5.5|~6.0|~7.0|~8.0",
|
||||||
|
"illuminate/console": "~5.5|~6.0|~7.0|~8.0",
|
||||||
"casbin/casbin": "~3.1",
|
"casbin/casbin": "~3.1",
|
||||||
"casbin/psr3-bridge": "^1.1"
|
"casbin/psr3-bridge": "^1.1"
|
||||||
},
|
},
|
||||||
|
|
|
@ -14,7 +14,7 @@ return [
|
||||||
// Available Settings: "file", "text"
|
// Available Settings: "file", "text"
|
||||||
'config_type' => 'file',
|
'config_type' => 'file',
|
||||||
|
|
||||||
'config_file_path' => config_path('lauthz-rbac-model.conf'),
|
'config_file_path' => __DIR__ . DIRECTORY_SEPARATOR . 'lauthz-rbac-model.conf',
|
||||||
|
|
||||||
'config_text' => '',
|
'config_text' => '',
|
||||||
],
|
],
|
||||||
|
|
|
@ -15,8 +15,10 @@ class LauthzServiceProvider extends ServiceProvider
|
||||||
{
|
{
|
||||||
if ($this->app->runningInConsole()) {
|
if ($this->app->runningInConsole()) {
|
||||||
$this->publishes([__DIR__ . '/../database/migrations' => database_path('migrations')], 'laravel-lauthz-migrations');
|
$this->publishes([__DIR__ . '/../database/migrations' => database_path('migrations')], 'laravel-lauthz-migrations');
|
||||||
$this->publishes([__DIR__ . '/../config/lauthz-rbac-model.conf' => config_path('lauthz-rbac-model.conf')], 'laravel-lauthz-config');
|
$this->publishes([
|
||||||
$this->publishes([__DIR__ . '/../config/lauthz.php' => config_path('lauthz.php')], 'laravel-lauthz-config');
|
__DIR__ . '/../config/lauthz-rbac-model.conf' => $this->app->basePath() . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . ('lauthz-rbac-model.conf'),
|
||||||
|
__DIR__ . '/../config/lauthz.php' => $this->app->basePath() . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . ('lauthz.php'),
|
||||||
|
], 'laravel-lauthz-config');
|
||||||
|
|
||||||
$this->commands([
|
$this->commands([
|
||||||
Commands\GroupAdd::class,
|
Commands\GroupAdd::class,
|
||||||
|
|
Loading…
Reference in New Issue