1 | <?php |
||
33 | class MainServiceProvider extends ServiceProviderAbstract |
||
34 | { |
||
35 | |||
36 | use FractalTrait; |
||
37 | use FactoriesLoaderTrait; |
||
38 | use AutoLoaderTrait; |
||
39 | |||
40 | /** |
||
41 | * Register any Service Providers on the Port layer (including third party packages). |
||
42 | * |
||
43 | * @var array |
||
44 | */ |
||
45 | public $serviceProviders = [ |
||
46 | FoundationServiceProvider::class, |
||
47 | DingoApiServiceProvider::class, |
||
48 | CorsServiceProvider::class, |
||
49 | RepositoryServiceProvider::class, |
||
50 | MainRoutesServiceProvider::class, |
||
51 | MainAuthServiceProvider::class, |
||
52 | MainBroadcastServiceProvider::class, |
||
53 | HashidsServiceProvider::class, |
||
54 | ]; |
||
55 | |||
56 | /** |
||
57 | * Register any Alias on the Port layer (including third party packages). |
||
58 | * |
||
59 | * @var array |
||
60 | */ |
||
61 | protected $aliases = [ |
||
62 | 'Hashids' => Hashids::class, |
||
63 | ]; |
||
64 | |||
65 | /** |
||
66 | * Bootstrap any application services. |
||
67 | * |
||
68 | * @return void |
||
69 | */ |
||
70 | public function boot() |
||
81 | |||
82 | /** |
||
83 | * Register any application services. |
||
84 | * |
||
85 | * @return void |
||
86 | */ |
||
87 | public function register() |
||
94 | |||
95 | /** |
||
96 | * TODO: to be removed from this class and placed in a trait |
||
97 | * |
||
98 | * Extend the default Laravel validation rules. |
||
99 | */ |
||
100 | private function extendValidationRules(){ |
||
105 | } |
||
106 |