File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 2121 "license" : " Apache-2.0" ,
2222 "require" : {
2323 "php" : " >=7.1.0" ,
24- "laravel/framework" : " ~5.5|~6.0|~7.0|~8.0" ,
24+ "illuminate/support" : " ~5.5|~6.0|~7.0|~8.0" ,
25+ "illuminate/database" : " ~5.5|~6.0|~7.0|~8.0" ,
26+ "illuminate/console" : " ~5.5|~6.0|~7.0|~8.0" ,
2527 "casbin/casbin" : " ~3.1" ,
2628 "casbin/psr3-bridge" : " ^1.1"
2729 },
Original file line number Diff line number Diff line change 1414 // Available Settings: "file", "text"
1515 'config_type ' => 'file ' ,
1616
17- 'config_file_path ' => config_path ( 'lauthz-rbac-model.conf ' ) ,
17+ 'config_file_path ' => __DIR__ . DIRECTORY_SEPARATOR . 'lauthz-rbac-model.conf ' ,
1818
1919 'config_text ' => '' ,
2020 ],
Original file line number Diff line number Diff line change @@ -15,8 +15,10 @@ public function boot()
1515 {
1616 if ($ this ->app ->runningInConsole ()) {
1717 $ this ->publishes ([__DIR__ . '/../database/migrations ' => database_path ('migrations ' )], 'laravel-lauthz-migrations ' );
18- $ this ->publishes ([__DIR__ . '/../config/lauthz-rbac-model.conf ' => config_path ('lauthz-rbac-model.conf ' )], 'laravel-lauthz-config ' );
19- $ this ->publishes ([__DIR__ . '/../config/lauthz.php ' => config_path ('lauthz.php ' )], 'laravel-lauthz-config ' );
18+ $ this ->publishes ([
19+ __DIR__ . '/../config/lauthz-rbac-model.conf ' => $ this ->app ->basePath () . DIRECTORY_SEPARATOR . 'config ' . DIRECTORY_SEPARATOR . ('lauthz-rbac-model.conf ' ),
20+ __DIR__ . '/../config/lauthz.php ' => $ this ->app ->basePath () . DIRECTORY_SEPARATOR . 'config ' . DIRECTORY_SEPARATOR . ('lauthz.php ' ),
21+ ], 'laravel-lauthz-config ' );
2022
2123 $ this ->commands ([
2224 Commands \GroupAdd::class,
You can’t perform that action at this time.
0 commit comments