1 | <?php |
||
25 | class UsersManagementServiceProvider extends EventServiceProvider |
||
26 | { |
||
27 | |||
28 | /** |
||
29 | * The event listener mappings for the application. |
||
30 | * |
||
31 | * @var array |
||
32 | */ |
||
33 | protected $listen = [ |
||
34 | \Acacha\Users\Events\UserHasBeenMigrated::class => [ |
||
35 | \Acacha\Users\Listeners\PersistUserMigrationInDatabase::class, |
||
36 | ], |
||
37 | ]; |
||
38 | |||
39 | /** |
||
40 | * Register the application services. |
||
41 | */ |
||
42 | public function register() { |
||
67 | |||
68 | /** |
||
69 | * Register Spatie permissions service Provider. |
||
70 | */ |
||
71 | protected function registerSpatiePermissionServiceProvider() |
||
78 | |||
79 | /** |
||
80 | * Register Laravel passport service Provider. |
||
81 | */ |
||
82 | protected function registerLaravelPassportServiceProvider() |
||
89 | |||
90 | /** |
||
91 | * Register Acacha Stateful service Provider. |
||
92 | */ |
||
93 | protected function registerAcachaStatefulServiceProvider() |
||
97 | |||
98 | /** |
||
99 | * Register Google Service Provider. |
||
100 | */ |
||
101 | protected function registerGoogleServiceProvider() |
||
115 | |||
116 | /** |
||
117 | * Bootstrap the application services. |
||
118 | */ |
||
119 | public function boot() { |
||
138 | |||
139 | /** |
||
140 | * Configure broadcast channels. |
||
141 | * |
||
142 | */ |
||
143 | protected function configureBroadcastChannels() |
||
149 | |||
150 | |||
151 | /** |
||
152 | * Define the AdminLTETemplate routes. |
||
153 | */ |
||
154 | protected function defineRoutes() |
||
162 | |||
163 | /** |
||
164 | * Define web routes. |
||
165 | * |
||
166 | * @param $router |
||
167 | */ |
||
168 | protected function defineWebRoutes($router) |
||
174 | |||
175 | /** |
||
176 | * Define api routes. |
||
177 | * |
||
178 | * @param $router |
||
179 | */ |
||
180 | protected function defineApiRoutes($router) |
||
186 | |||
187 | /** |
||
188 | * Publish package language to Laravel project. |
||
189 | */ |
||
190 | private function publishLanguages() |
||
196 | |||
197 | /** |
||
198 | * Publish package views to Laravel project. |
||
199 | */ |
||
200 | private function publishViews() |
||
206 | |||
207 | /** |
||
208 | * Publish config auth. |
||
209 | */ |
||
210 | private function publishConfigAuth() { |
||
213 | |||
214 | /** |
||
215 | * Load package migrations. |
||
216 | */ |
||
217 | public function loadMigrations() |
||
221 | |||
222 | /** |
||
223 | * Publish seeds. |
||
224 | */ |
||
225 | private function publishSeeds() { |
||
228 | |||
229 | /** |
||
230 | * Publish factories. |
||
231 | */ |
||
232 | private function publishFactories() { |
||
235 | |||
236 | /** |
||
237 | * Define observers. |
||
238 | */ |
||
239 | public function defineObservers() |
||
244 | |||
245 | } |