@@ -8,5 +8,5 @@ |
||
| 8 | 8 | |
| 9 | 9 | abstract class Controller extends BaseController |
| 10 | 10 | { |
| 11 | - use AuthorizesRequests, DispatchesJobs, ValidatesRequests; |
|
| 11 | + use AuthorizesRequests, DispatchesJobs, ValidatesRequests; |
|
| 12 | 12 | } |
@@ -7,34 +7,34 @@ |
||
| 7 | 7 | |
| 8 | 8 | class ModuleServiceProvider extends ServiceProvider |
| 9 | 9 | { |
| 10 | - protected $files; |
|
| 10 | + protected $files; |
|
| 11 | 11 | |
| 12 | - /** |
|
| 13 | - * Bootstrap the application services. |
|
| 14 | - * |
|
| 15 | - * @return void |
|
| 16 | - */ |
|
| 17 | - public function boot() |
|
| 18 | - { |
|
| 19 | - $modules = $this->files->directories(app_path() . '/LaravelRestCms/Modules'); |
|
| 12 | + /** |
|
| 13 | + * Bootstrap the application services. |
|
| 14 | + * |
|
| 15 | + * @return void |
|
| 16 | + */ |
|
| 17 | + public function boot() |
|
| 18 | + { |
|
| 19 | + $modules = $this->files->directories(app_path() . '/LaravelRestCms/Modules'); |
|
| 20 | 20 | |
| 21 | - foreach ($modules as $module) { |
|
| 21 | + foreach ($modules as $module) { |
|
| 22 | 22 | |
| 23 | - $route = $module . '/routes.php'; |
|
| 23 | + $route = $module . '/routes.php'; |
|
| 24 | 24 | |
| 25 | - if ($this->files->exists($route)) { |
|
| 26 | - require $route; |
|
| 27 | - } |
|
| 28 | - } |
|
| 29 | - } |
|
| 25 | + if ($this->files->exists($route)) { |
|
| 26 | + require $route; |
|
| 27 | + } |
|
| 28 | + } |
|
| 29 | + } |
|
| 30 | 30 | |
| 31 | - /** |
|
| 32 | - * Register the application services. |
|
| 33 | - * |
|
| 34 | - * @return void |
|
| 35 | - */ |
|
| 36 | - public function register() |
|
| 37 | - { |
|
| 38 | - $this->files = new Filesystem; |
|
| 39 | - } |
|
| 31 | + /** |
|
| 32 | + * Register the application services. |
|
| 33 | + * |
|
| 34 | + * @return void |
|
| 35 | + */ |
|
| 36 | + public function register() |
|
| 37 | + { |
|
| 38 | + $this->files = new Filesystem; |
|
| 39 | + } |
|
| 40 | 40 | } |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | { |
| 19 | 19 | $modules = $this->files->directories(app_path() . '/LaravelRestCms/Modules'); |
| 20 | 20 | |
| 21 | - foreach ($modules as $module) { |
|
| 21 | + foreach ($modules as $module) { |
|
| 22 | 22 | |
| 23 | 23 | $route = $module . '/routes.php'; |
| 24 | 24 | |
@@ -7,25 +7,25 @@ |
||
| 7 | 7 | |
| 8 | 8 | class AuthServiceProvider extends ServiceProvider |
| 9 | 9 | { |
| 10 | - /** |
|
| 11 | - * The policy mappings for the application. |
|
| 12 | - * |
|
| 13 | - * @var array |
|
| 14 | - */ |
|
| 15 | - protected $policies = [ |
|
| 16 | - 'App\Model' => 'App\Policies\ModelPolicy', |
|
| 17 | - ]; |
|
| 10 | + /** |
|
| 11 | + * The policy mappings for the application. |
|
| 12 | + * |
|
| 13 | + * @var array |
|
| 14 | + */ |
|
| 15 | + protected $policies = [ |
|
| 16 | + 'App\Model' => 'App\Policies\ModelPolicy', |
|
| 17 | + ]; |
|
| 18 | 18 | |
| 19 | - /** |
|
| 20 | - * Register any application authentication / authorization services. |
|
| 21 | - * |
|
| 22 | - * @param \Illuminate\Contracts\Auth\Access\Gate $gate |
|
| 23 | - * @return void |
|
| 24 | - */ |
|
| 25 | - public function boot(GateContract $gate) |
|
| 26 | - { |
|
| 27 | - $this->registerPolicies($gate); |
|
| 19 | + /** |
|
| 20 | + * Register any application authentication / authorization services. |
|
| 21 | + * |
|
| 22 | + * @param \Illuminate\Contracts\Auth\Access\Gate $gate |
|
| 23 | + * @return void |
|
| 24 | + */ |
|
| 25 | + public function boot(GateContract $gate) |
|
| 26 | + { |
|
| 27 | + $this->registerPolicies($gate); |
|
| 28 | 28 | |
| 29 | - // |
|
| 30 | - } |
|
| 29 | + // |
|
| 30 | + } |
|
| 31 | 31 | } |
| 32 | 32 | \ No newline at end of file |