1 | <?php |
||
18 | trait AutoLoaderTrait |
||
19 | { |
||
20 | use ConfigsLoaderTrait; |
||
21 | use MigrationsLoaderTrait; |
||
22 | use ViewsLoaderTrait; |
||
23 | use ProvidersLoaderTrait; |
||
24 | use FactoriesLoaderTrait; |
||
25 | use ConsolesLoaderTrait; |
||
26 | use AliasesLoaderTrait; |
||
27 | |||
28 | public function bootLoaders() |
||
36 | |||
37 | public function registerLoaders() |
||
41 | |||
42 | |||
43 | } |
||
44 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: