File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ public function boot()
24
24
{
25
25
$ this ->publishes ([
26
26
dirname (dirname (__DIR__ )) . '/config/zendacl.php ' => config_path ('zendacl.php ' ),
27
- dirname (dirname (__DIR__ )) . '/config/acl.php ' => app_path ( ' Http /acl.php ' ),
27
+ dirname (dirname (__DIR__ )) . '/config/acl.php ' => base_path ( ' routes /acl.php ' ),
28
28
dirname (dirname (__DIR__ )) . '/views ' => base_path ('resources/views/vendor/zendacl ' ),
29
29
]);
30
30
@@ -45,7 +45,9 @@ public function register()
45
45
46
46
$ this ->app ->singleton ('acl ' , function (Application $ app ) {
47
47
$ acl = new Acl ;
48
- if (file_exists (app_path ('Http/acl.php ' ))) {
48
+ if (file_exists (base_path ('routes/acl.php ' ))) {
49
+ include base_path ('routes/acl.php ' );
50
+ } elseif (file_exists (app_path ('Http/acl.php ' ))) {
49
51
include app_path ('Http/acl.php ' );
50
52
}
51
53
return $ acl ;
You can’t perform that action at this time.
0 commit comments