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 21
21
"license" : " Apache-2.0" ,
22
22
"require" : {
23
23
"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" ,
25
27
"casbin/casbin" : " ~3.1" ,
26
28
"casbin/psr3-bridge" : " ^1.1"
27
29
},
Original file line number Diff line number Diff line change 14
14
// Available Settings: "file", "text"
15
15
'config_type ' => 'file ' ,
16
16
17
- 'config_file_path ' => config_path ( 'lauthz-rbac-model.conf ' ) ,
17
+ 'config_file_path ' => __DIR__ . DIRECTORY_SEPARATOR . 'lauthz-rbac-model.conf ' ,
18
18
19
19
'config_text ' => '' ,
20
20
],
Original file line number Diff line number Diff line change @@ -15,8 +15,10 @@ public function boot()
15
15
{
16
16
if ($ this ->app ->runningInConsole ()) {
17
17
$ 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 ' );
20
22
21
23
$ this ->commands ([
22
24
Commands \GroupAdd::class,
You can’t perform that action at this time.
0 commit comments