1 | <?php |
||
12 | class AclServiceProvider extends ServiceProvider |
||
13 | { |
||
14 | /** |
||
15 | * Register any application authentication / authorization services. |
||
16 | * |
||
17 | * @param \Illuminate\Contracts\Auth\Access\Gate $gate |
||
18 | * @return void |
||
19 | */ |
||
20 | public function boot(GateContract $gate) |
||
30 | |||
31 | /** |
||
32 | * Publish package config file. |
||
33 | */ |
||
34 | protected function publishConfig() |
||
40 | |||
41 | /** |
||
42 | * Publish package migration files. |
||
43 | */ |
||
44 | protected function publishMigrations() |
||
50 | |||
51 | /** |
||
52 | * Load package language files. |
||
53 | */ |
||
54 | protected function loadTranslations() |
||
58 | |||
59 | /** |
||
60 | * Register defined permissions from database. |
||
61 | * |
||
62 | * @param \Illuminate\Contracts\Auth\Access\Gate $gate |
||
63 | */ |
||
64 | protected function registerPermissions(GateContract $gate) |
||
84 | |||
85 | /** |
||
86 | * Get lists of permissions. |
||
87 | * |
||
88 | * @return \Illuminate\Database\Eloquent\Collection|static[] |
||
89 | */ |
||
90 | protected function getPermissions() |
||
96 | |||
97 | /** |
||
98 | * Register ACL models cache listener. |
||
99 | */ |
||
100 | protected function registerCacheListener() |
||
110 | |||
111 | /** |
||
112 | * Register custom blade directives. |
||
113 | */ |
||
114 | protected function registerBladeDirectives() |
||
122 | |||
123 | /** |
||
124 | * Register providers. |
||
125 | */ |
||
126 | public function register() |
||
130 | } |
||
131 |