@@ -11,39 +11,39 @@ |
||
11 | 11 | |
12 | 12 | class Kernel extends ConsoleKernel |
13 | 13 | { |
14 | - /** |
|
15 | - * The Artisan commands provided by your application. |
|
16 | - * |
|
17 | - * @var array |
|
18 | - */ |
|
19 | - protected $commands = [ |
|
20 | - GenerateDocCommand::class, |
|
21 | - PassportInstallCommand::class, |
|
22 | - MakeNotificationsCommand::class, |
|
23 | - MakeModuleCommand::class |
|
24 | - ]; |
|
14 | + /** |
|
15 | + * The Artisan commands provided by your application. |
|
16 | + * |
|
17 | + * @var array |
|
18 | + */ |
|
19 | + protected $commands = [ |
|
20 | + GenerateDocCommand::class, |
|
21 | + PassportInstallCommand::class, |
|
22 | + MakeNotificationsCommand::class, |
|
23 | + MakeModuleCommand::class |
|
24 | + ]; |
|
25 | 25 | |
26 | - /** |
|
27 | - * Define the application's command schedule. |
|
28 | - * |
|
29 | - * @param \Illuminate\Console\Scheduling\Schedule $schedule |
|
30 | - * @return void |
|
31 | - */ |
|
32 | - protected function schedule(Schedule $schedule) |
|
33 | - { |
|
34 | - // $schedule->command('inspire') |
|
35 | - // ->hourly(); |
|
36 | - } |
|
26 | + /** |
|
27 | + * Define the application's command schedule. |
|
28 | + * |
|
29 | + * @param \Illuminate\Console\Scheduling\Schedule $schedule |
|
30 | + * @return void |
|
31 | + */ |
|
32 | + protected function schedule(Schedule $schedule) |
|
33 | + { |
|
34 | + // $schedule->command('inspire') |
|
35 | + // ->hourly(); |
|
36 | + } |
|
37 | 37 | |
38 | - /** |
|
39 | - * Register the commands for the application. |
|
40 | - * |
|
41 | - * @return void |
|
42 | - */ |
|
43 | - protected function commands() |
|
44 | - { |
|
45 | - $this->load(__DIR__.'/Commands'); |
|
38 | + /** |
|
39 | + * Register the commands for the application. |
|
40 | + * |
|
41 | + * @return void |
|
42 | + */ |
|
43 | + protected function commands() |
|
44 | + { |
|
45 | + $this->load(__DIR__.'/Commands'); |
|
46 | 46 | |
47 | - require base_path('routes/console.php'); |
|
48 | - } |
|
47 | + require base_path('routes/console.php'); |
|
48 | + } |
|
49 | 49 | } |
@@ -9,43 +9,43 @@ |
||
9 | 9 | |
10 | 10 | class ResetPassword extends Notification implements ShouldQueue |
11 | 11 | { |
12 | - use Queueable; |
|
12 | + use Queueable; |
|
13 | 13 | |
14 | - protected $token; |
|
14 | + protected $token; |
|
15 | 15 | |
16 | - /** |
|
17 | - * Init new object. |
|
18 | - * |
|
19 | - * @return void |
|
20 | - */ |
|
21 | - public function __construct($token) |
|
22 | - { |
|
23 | - $this->token = $token; |
|
24 | - } |
|
16 | + /** |
|
17 | + * Init new object. |
|
18 | + * |
|
19 | + * @return void |
|
20 | + */ |
|
21 | + public function __construct($token) |
|
22 | + { |
|
23 | + $this->token = $token; |
|
24 | + } |
|
25 | 25 | |
26 | - /** |
|
27 | - * Get the notification's delivery channels. |
|
28 | - * |
|
29 | - * @param mixed $notifiable |
|
30 | - * @return string[] |
|
31 | - */ |
|
32 | - public function via($notifiable) |
|
33 | - { |
|
34 | - return ['mail']; |
|
35 | - } |
|
26 | + /** |
|
27 | + * Get the notification's delivery channels. |
|
28 | + * |
|
29 | + * @param mixed $notifiable |
|
30 | + * @return string[] |
|
31 | + */ |
|
32 | + public function via($notifiable) |
|
33 | + { |
|
34 | + return ['mail']; |
|
35 | + } |
|
36 | 36 | |
37 | - /** |
|
38 | - * Get the mail representation of the notification. |
|
39 | - * |
|
40 | - * @param mixed $notifiable |
|
41 | - * @return \Illuminate\Notifications\Messages\MailMessage |
|
42 | - */ |
|
43 | - public function toMail($notifiable) |
|
44 | - { |
|
45 | - return (new MailMessage) |
|
46 | - ->subject('Reset passowrd') |
|
47 | - ->line('Reset passowrd') |
|
48 | - ->line('To reset your password click on the button below') |
|
49 | - ->action('Reset password', config('user.reset_password_url').'/'.$this->token); |
|
50 | - } |
|
37 | + /** |
|
38 | + * Get the mail representation of the notification. |
|
39 | + * |
|
40 | + * @param mixed $notifiable |
|
41 | + * @return \Illuminate\Notifications\Messages\MailMessage |
|
42 | + */ |
|
43 | + public function toMail($notifiable) |
|
44 | + { |
|
45 | + return (new MailMessage) |
|
46 | + ->subject('Reset passowrd') |
|
47 | + ->line('Reset passowrd') |
|
48 | + ->line('To reset your password click on the button below') |
|
49 | + ->action('Reset password', config('user.reset_password_url').'/'.$this->token); |
|
50 | + } |
|
51 | 51 | } |
@@ -9,41 +9,41 @@ |
||
9 | 9 | |
10 | 10 | class ConfirmEmail extends Notification implements ShouldQueue |
11 | 11 | { |
12 | - use Queueable; |
|
12 | + use Queueable; |
|
13 | 13 | |
14 | - /** |
|
15 | - * Init new object. |
|
16 | - * |
|
17 | - * @return void |
|
18 | - */ |
|
19 | - public function __construct() |
|
20 | - { |
|
21 | - // |
|
22 | - } |
|
14 | + /** |
|
15 | + * Init new object. |
|
16 | + * |
|
17 | + * @return void |
|
18 | + */ |
|
19 | + public function __construct() |
|
20 | + { |
|
21 | + // |
|
22 | + } |
|
23 | 23 | |
24 | - /** |
|
25 | - * Get the notification's delivery channels. |
|
26 | - * |
|
27 | - * @param mixed $notifiable |
|
28 | - * @return string[] |
|
29 | - */ |
|
30 | - public function via($notifiable) |
|
31 | - { |
|
32 | - return ['mail']; |
|
33 | - } |
|
24 | + /** |
|
25 | + * Get the notification's delivery channels. |
|
26 | + * |
|
27 | + * @param mixed $notifiable |
|
28 | + * @return string[] |
|
29 | + */ |
|
30 | + public function via($notifiable) |
|
31 | + { |
|
32 | + return ['mail']; |
|
33 | + } |
|
34 | 34 | |
35 | - /** |
|
36 | - * Get the mail representation of the notification. |
|
37 | - * |
|
38 | - * @param mixed $notifiable |
|
39 | - * @return \Illuminate\Notifications\Messages\MailMessage |
|
40 | - */ |
|
41 | - public function toMail($notifiable) |
|
42 | - { |
|
43 | - return (new MailMessage) |
|
44 | - ->subject('Email verification') |
|
45 | - ->line('Email verification') |
|
46 | - ->line('To validate your email click on the button below') |
|
47 | - ->action('Verify your email', config('user.confrim_email_url').'/'.$notifiable->confirmation_code); |
|
48 | - } |
|
35 | + /** |
|
36 | + * Get the mail representation of the notification. |
|
37 | + * |
|
38 | + * @param mixed $notifiable |
|
39 | + * @return \Illuminate\Notifications\Messages\MailMessage |
|
40 | + */ |
|
41 | + public function toMail($notifiable) |
|
42 | + { |
|
43 | + return (new MailMessage) |
|
44 | + ->subject('Email verification') |
|
45 | + ->line('Email verification') |
|
46 | + ->line('To validate your email click on the button below') |
|
47 | + ->action('Verify your email', config('user.confrim_email_url').'/'.$notifiable->confirmation_code); |
|
48 | + } |
|
49 | 49 | } |
@@ -2,7 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace App\Exceptions; |
4 | 4 | |
5 | -use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; |
|
5 | +use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; |
|
6 | 6 | use Throwable; |
7 | 7 | |
8 | 8 | class Handler extends ExceptionHandler |
@@ -7,69 +7,69 @@ |
||
7 | 7 | |
8 | 8 | class Handler extends ExceptionHandler |
9 | 9 | { |
10 | - /** |
|
11 | - * A list of the exception types that are not reported. |
|
12 | - * |
|
13 | - * @var array |
|
14 | - */ |
|
15 | - protected $dontReport = [ |
|
16 | - \League\OAuth2\Server\Exception\OAuthServerException::class, |
|
17 | - ]; |
|
10 | + /** |
|
11 | + * A list of the exception types that are not reported. |
|
12 | + * |
|
13 | + * @var array |
|
14 | + */ |
|
15 | + protected $dontReport = [ |
|
16 | + \League\OAuth2\Server\Exception\OAuthServerException::class, |
|
17 | + ]; |
|
18 | 18 | |
19 | - /** |
|
20 | - * A list of the inputs that are never flashed for validation exceptions. |
|
21 | - * |
|
22 | - * @var array |
|
23 | - */ |
|
24 | - protected $dontFlash = [ |
|
25 | - 'password', |
|
26 | - 'password_confirmation', |
|
27 | - ]; |
|
19 | + /** |
|
20 | + * A list of the inputs that are never flashed for validation exceptions. |
|
21 | + * |
|
22 | + * @var array |
|
23 | + */ |
|
24 | + protected $dontFlash = [ |
|
25 | + 'password', |
|
26 | + 'password_confirmation', |
|
27 | + ]; |
|
28 | 28 | |
29 | - /** |
|
30 | - * Report or log an exception. |
|
31 | - * |
|
32 | - * @param \Throwable $exception |
|
33 | - * @return void |
|
34 | - * |
|
35 | - * @throws \Exception |
|
36 | - */ |
|
37 | - public function report(Throwable $exception) |
|
38 | - { |
|
39 | - parent::report($exception); |
|
40 | - } |
|
29 | + /** |
|
30 | + * Report or log an exception. |
|
31 | + * |
|
32 | + * @param \Throwable $exception |
|
33 | + * @return void |
|
34 | + * |
|
35 | + * @throws \Exception |
|
36 | + */ |
|
37 | + public function report(Throwable $exception) |
|
38 | + { |
|
39 | + parent::report($exception); |
|
40 | + } |
|
41 | 41 | |
42 | - /** |
|
43 | - * Render an exception into an HTTP response. |
|
44 | - * |
|
45 | - * @param \Illuminate\Http\Request $request |
|
46 | - * @param \Throwable $exception |
|
47 | - * @return \Symfony\Component\HttpFoundation\Response |
|
48 | - * |
|
49 | - * @throws \Throwable |
|
50 | - */ |
|
51 | - public function render($request, Throwable $exception) |
|
52 | - { |
|
53 | - if ($request->wantsJson()) { |
|
54 | - if ($exception instanceof \Illuminate\Auth\AuthenticationException) { |
|
55 | - \Errors::unAuthorized(); |
|
56 | - } |
|
57 | - if ($exception instanceof \Illuminate\Database\QueryException) { |
|
58 | - \Errors::dbQueryError(); |
|
59 | - } elseif ($exception instanceof \predis\connection\connectionexception) { |
|
60 | - \Errors::redisNotRunning(); |
|
61 | - } elseif ($exception instanceof \GuzzleHttp\Exception\ClientException) { |
|
62 | - \Errors::connectionError(); |
|
63 | - } elseif ($exception instanceof \Symfony\Component\HttpKernel\Exception\HttpException) { |
|
64 | - $errors = $exception-> getStatusCode() === 404 ? 'not found' : $exception-> getMessage(); |
|
65 | - return \Response::json(['errors' => [$errors]], $exception-> getStatusCode()); |
|
66 | - } elseif ($exception instanceof \Illuminate\Validation\ValidationException) { |
|
67 | - return \Response::json(['errors' => $exception-> errors()], 422); |
|
68 | - } elseif (! $exception instanceof \Symfony\Component\ErrorHandler\Error\FatalError) { |
|
69 | - return parent::render($request, $exception); |
|
70 | - } |
|
71 | - } |
|
42 | + /** |
|
43 | + * Render an exception into an HTTP response. |
|
44 | + * |
|
45 | + * @param \Illuminate\Http\Request $request |
|
46 | + * @param \Throwable $exception |
|
47 | + * @return \Symfony\Component\HttpFoundation\Response |
|
48 | + * |
|
49 | + * @throws \Throwable |
|
50 | + */ |
|
51 | + public function render($request, Throwable $exception) |
|
52 | + { |
|
53 | + if ($request->wantsJson()) { |
|
54 | + if ($exception instanceof \Illuminate\Auth\AuthenticationException) { |
|
55 | + \Errors::unAuthorized(); |
|
56 | + } |
|
57 | + if ($exception instanceof \Illuminate\Database\QueryException) { |
|
58 | + \Errors::dbQueryError(); |
|
59 | + } elseif ($exception instanceof \predis\connection\connectionexception) { |
|
60 | + \Errors::redisNotRunning(); |
|
61 | + } elseif ($exception instanceof \GuzzleHttp\Exception\ClientException) { |
|
62 | + \Errors::connectionError(); |
|
63 | + } elseif ($exception instanceof \Symfony\Component\HttpKernel\Exception\HttpException) { |
|
64 | + $errors = $exception-> getStatusCode() === 404 ? 'not found' : $exception-> getMessage(); |
|
65 | + return \Response::json(['errors' => [$errors]], $exception-> getStatusCode()); |
|
66 | + } elseif ($exception instanceof \Illuminate\Validation\ValidationException) { |
|
67 | + return \Response::json(['errors' => $exception-> errors()], 422); |
|
68 | + } elseif (! $exception instanceof \Symfony\Component\ErrorHandler\Error\FatalError) { |
|
69 | + return parent::render($request, $exception); |
|
70 | + } |
|
71 | + } |
|
72 | 72 | |
73 | - return parent::render($request, $exception); |
|
74 | - } |
|
73 | + return parent::render($request, $exception); |
|
74 | + } |
|
75 | 75 | } |
@@ -65,7 +65,7 @@ |
||
65 | 65 | return \Response::json(['errors' => [$errors]], $exception-> getStatusCode()); |
66 | 66 | } elseif ($exception instanceof \Illuminate\Validation\ValidationException) { |
67 | 67 | return \Response::json(['errors' => $exception-> errors()], 422); |
68 | - } elseif (! $exception instanceof \Symfony\Component\ErrorHandler\Error\FatalError) { |
|
68 | + } elseif ( ! $exception instanceof \Symfony\Component\ErrorHandler\Error\FatalError) { |
|
69 | 69 | return parent::render($request, $exception); |
70 | 70 | } |
71 | 71 | } |
@@ -6,30 +6,30 @@ |
||
6 | 6 | |
7 | 7 | class ModuleServiceProvider extends ServiceProvider |
8 | 8 | { |
9 | - /** |
|
10 | - * Bootstrap the module services. |
|
11 | - * |
|
12 | - * @return void |
|
13 | - */ |
|
14 | - public function boot() |
|
15 | - { |
|
16 | - $this->loadTranslationsFrom(__DIR__.'/../Resources/Lang', 'oauth-clients'); |
|
17 | - $this->loadViewsFrom(__DIR__.'/../Resources/Views', 'oauth-clients'); |
|
9 | + /** |
|
10 | + * Bootstrap the module services. |
|
11 | + * |
|
12 | + * @return void |
|
13 | + */ |
|
14 | + public function boot() |
|
15 | + { |
|
16 | + $this->loadTranslationsFrom(__DIR__.'/../Resources/Lang', 'oauth-clients'); |
|
17 | + $this->loadViewsFrom(__DIR__.'/../Resources/Views', 'oauth-clients'); |
|
18 | 18 | |
19 | - $this->loadMigrationsFrom(module_path('oauth-clients', 'Database/Migrations', 'app')); |
|
20 | - $this->loadFactoriesFrom(module_path('oauth-clients', 'Database/Factories', 'app')); |
|
21 | - if (!$this->app->configurationIsCached()) { |
|
22 | - $this->loadConfigsFrom(module_path('oauth-clients', 'Config', 'app')); |
|
23 | - } |
|
24 | - } |
|
19 | + $this->loadMigrationsFrom(module_path('oauth-clients', 'Database/Migrations', 'app')); |
|
20 | + $this->loadFactoriesFrom(module_path('oauth-clients', 'Database/Factories', 'app')); |
|
21 | + if (!$this->app->configurationIsCached()) { |
|
22 | + $this->loadConfigsFrom(module_path('oauth-clients', 'Config', 'app')); |
|
23 | + } |
|
24 | + } |
|
25 | 25 | |
26 | - /** |
|
27 | - * Register the module services. |
|
28 | - * |
|
29 | - * @return void |
|
30 | - */ |
|
31 | - public function register() |
|
32 | - { |
|
33 | - $this->app->register(RouteServiceProvider::class); |
|
34 | - } |
|
26 | + /** |
|
27 | + * Register the module services. |
|
28 | + * |
|
29 | + * @return void |
|
30 | + */ |
|
31 | + public function register() |
|
32 | + { |
|
33 | + $this->app->register(RouteServiceProvider::class); |
|
34 | + } |
|
35 | 35 | } |
@@ -18,7 +18,7 @@ |
||
18 | 18 | |
19 | 19 | $this->loadMigrationsFrom(module_path('oauth-clients', 'Database/Migrations', 'app')); |
20 | 20 | $this->loadFactoriesFrom(module_path('oauth-clients', 'Database/Factories', 'app')); |
21 | - if (!$this->app->configurationIsCached()) { |
|
21 | + if ( ! $this->app->configurationIsCached()) { |
|
22 | 22 | $this->loadConfigsFrom(module_path('oauth-clients', 'Config', 'app')); |
23 | 23 | } |
24 | 24 | } |
@@ -6,30 +6,30 @@ |
||
6 | 6 | |
7 | 7 | class ModuleServiceProvider extends ServiceProvider |
8 | 8 | { |
9 | - /** |
|
10 | - * Bootstrap the module services. |
|
11 | - * |
|
12 | - * @return void |
|
13 | - */ |
|
14 | - public function boot() |
|
15 | - { |
|
16 | - $this->loadTranslationsFrom(__DIR__.'/../Resources/Lang', 'push-notification-devices'); |
|
17 | - $this->loadViewsFrom(__DIR__.'/../Resources/Views', 'push-notification-devices'); |
|
9 | + /** |
|
10 | + * Bootstrap the module services. |
|
11 | + * |
|
12 | + * @return void |
|
13 | + */ |
|
14 | + public function boot() |
|
15 | + { |
|
16 | + $this->loadTranslationsFrom(__DIR__.'/../Resources/Lang', 'push-notification-devices'); |
|
17 | + $this->loadViewsFrom(__DIR__.'/../Resources/Views', 'push-notification-devices'); |
|
18 | 18 | |
19 | - $this->loadMigrationsFrom(module_path('push-notification-devices', 'Database/Migrations', 'app')); |
|
20 | - $this->loadFactoriesFrom(module_path('push-notification-devices', 'Database/Factories', 'app')); |
|
21 | - if (!$this->app->configurationIsCached()) { |
|
22 | - $this->loadConfigsFrom(module_path('push-notification-devices', 'Config', 'app')); |
|
23 | - } |
|
24 | - } |
|
19 | + $this->loadMigrationsFrom(module_path('push-notification-devices', 'Database/Migrations', 'app')); |
|
20 | + $this->loadFactoriesFrom(module_path('push-notification-devices', 'Database/Factories', 'app')); |
|
21 | + if (!$this->app->configurationIsCached()) { |
|
22 | + $this->loadConfigsFrom(module_path('push-notification-devices', 'Config', 'app')); |
|
23 | + } |
|
24 | + } |
|
25 | 25 | |
26 | - /** |
|
27 | - * Register the module services. |
|
28 | - * |
|
29 | - * @return void |
|
30 | - */ |
|
31 | - public function register() |
|
32 | - { |
|
33 | - $this->app->register(RouteServiceProvider::class); |
|
34 | - } |
|
26 | + /** |
|
27 | + * Register the module services. |
|
28 | + * |
|
29 | + * @return void |
|
30 | + */ |
|
31 | + public function register() |
|
32 | + { |
|
33 | + $this->app->register(RouteServiceProvider::class); |
|
34 | + } |
|
35 | 35 | } |
@@ -18,7 +18,7 @@ |
||
18 | 18 | |
19 | 19 | $this->loadMigrationsFrom(module_path('push-notification-devices', 'Database/Migrations', 'app')); |
20 | 20 | $this->loadFactoriesFrom(module_path('push-notification-devices', 'Database/Factories', 'app')); |
21 | - if (!$this->app->configurationIsCached()) { |
|
21 | + if ( ! $this->app->configurationIsCached()) { |
|
22 | 22 | $this->loadConfigsFrom(module_path('push-notification-devices', 'Config', 'app')); |
23 | 23 | } |
24 | 24 | } |
@@ -6,30 +6,30 @@ |
||
6 | 6 | |
7 | 7 | class ModuleServiceProvider extends ServiceProvider |
8 | 8 | { |
9 | - /** |
|
10 | - * Bootstrap the module services. |
|
11 | - * |
|
12 | - * @return void |
|
13 | - */ |
|
14 | - public function boot() |
|
15 | - { |
|
16 | - $this->loadTranslationsFrom(__DIR__.'/../Resources/Lang', 'roles'); |
|
17 | - $this->loadViewsFrom(__DIR__.'/../Resources/Views', 'roles'); |
|
9 | + /** |
|
10 | + * Bootstrap the module services. |
|
11 | + * |
|
12 | + * @return void |
|
13 | + */ |
|
14 | + public function boot() |
|
15 | + { |
|
16 | + $this->loadTranslationsFrom(__DIR__.'/../Resources/Lang', 'roles'); |
|
17 | + $this->loadViewsFrom(__DIR__.'/../Resources/Views', 'roles'); |
|
18 | 18 | |
19 | - $this->loadMigrationsFrom(module_path('roles', 'Database/Migrations', 'app')); |
|
20 | - $this->loadFactoriesFrom(module_path('roles', 'Database/Factories', 'app')); |
|
21 | - if (!$this->app->configurationIsCached()) { |
|
22 | - $this->loadConfigsFrom(module_path('roles', 'Config', 'app')); |
|
23 | - } |
|
24 | - } |
|
19 | + $this->loadMigrationsFrom(module_path('roles', 'Database/Migrations', 'app')); |
|
20 | + $this->loadFactoriesFrom(module_path('roles', 'Database/Factories', 'app')); |
|
21 | + if (!$this->app->configurationIsCached()) { |
|
22 | + $this->loadConfigsFrom(module_path('roles', 'Config', 'app')); |
|
23 | + } |
|
24 | + } |
|
25 | 25 | |
26 | - /** |
|
27 | - * Register the module services. |
|
28 | - * |
|
29 | - * @return void |
|
30 | - */ |
|
31 | - public function register() |
|
32 | - { |
|
33 | - $this->app->register(RouteServiceProvider::class); |
|
34 | - } |
|
26 | + /** |
|
27 | + * Register the module services. |
|
28 | + * |
|
29 | + * @return void |
|
30 | + */ |
|
31 | + public function register() |
|
32 | + { |
|
33 | + $this->app->register(RouteServiceProvider::class); |
|
34 | + } |
|
35 | 35 | } |
@@ -18,7 +18,7 @@ |
||
18 | 18 | |
19 | 19 | $this->loadMigrationsFrom(module_path('roles', 'Database/Migrations', 'app')); |
20 | 20 | $this->loadFactoriesFrom(module_path('roles', 'Database/Factories', 'app')); |
21 | - if (!$this->app->configurationIsCached()) { |
|
21 | + if ( ! $this->app->configurationIsCached()) { |
|
22 | 22 | $this->loadConfigsFrom(module_path('roles', 'Config', 'app')); |
23 | 23 | } |
24 | 24 | } |
@@ -6,30 +6,30 @@ |
||
6 | 6 | |
7 | 7 | class ModuleServiceProvider extends ServiceProvider |
8 | 8 | { |
9 | - /** |
|
10 | - * Bootstrap the module services. |
|
11 | - * |
|
12 | - * @return void |
|
13 | - */ |
|
14 | - public function boot() |
|
15 | - { |
|
16 | - $this->loadTranslationsFrom(__DIR__.'/../Resources/Lang', 'reporting'); |
|
17 | - $this->loadViewsFrom(__DIR__.'/../Resources/Views', 'reporting'); |
|
9 | + /** |
|
10 | + * Bootstrap the module services. |
|
11 | + * |
|
12 | + * @return void |
|
13 | + */ |
|
14 | + public function boot() |
|
15 | + { |
|
16 | + $this->loadTranslationsFrom(__DIR__.'/../Resources/Lang', 'reporting'); |
|
17 | + $this->loadViewsFrom(__DIR__.'/../Resources/Views', 'reporting'); |
|
18 | 18 | |
19 | - $this->loadMigrationsFrom(module_path('reporting', 'Database/Migrations', 'app')); |
|
20 | - $this->loadFactoriesFrom(module_path('reporting', 'Database/Factories', 'app')); |
|
21 | - if (!$this->app->configurationIsCached()) { |
|
22 | - $this->loadConfigsFrom(module_path('reporting', 'Config', 'app')); |
|
23 | - } |
|
24 | - } |
|
19 | + $this->loadMigrationsFrom(module_path('reporting', 'Database/Migrations', 'app')); |
|
20 | + $this->loadFactoriesFrom(module_path('reporting', 'Database/Factories', 'app')); |
|
21 | + if (!$this->app->configurationIsCached()) { |
|
22 | + $this->loadConfigsFrom(module_path('reporting', 'Config', 'app')); |
|
23 | + } |
|
24 | + } |
|
25 | 25 | |
26 | - /** |
|
27 | - * Register the module services. |
|
28 | - * |
|
29 | - * @return void |
|
30 | - */ |
|
31 | - public function register() |
|
32 | - { |
|
33 | - $this->app->register(RouteServiceProvider::class); |
|
34 | - } |
|
26 | + /** |
|
27 | + * Register the module services. |
|
28 | + * |
|
29 | + * @return void |
|
30 | + */ |
|
31 | + public function register() |
|
32 | + { |
|
33 | + $this->app->register(RouteServiceProvider::class); |
|
34 | + } |
|
35 | 35 | } |
@@ -18,7 +18,7 @@ |
||
18 | 18 | |
19 | 19 | $this->loadMigrationsFrom(module_path('reporting', 'Database/Migrations', 'app')); |
20 | 20 | $this->loadFactoriesFrom(module_path('reporting', 'Database/Factories', 'app')); |
21 | - if (!$this->app->configurationIsCached()) { |
|
21 | + if ( ! $this->app->configurationIsCached()) { |
|
22 | 22 | $this->loadConfigsFrom(module_path('reporting', 'Config', 'app')); |
23 | 23 | } |
24 | 24 | } |
@@ -6,30 +6,30 @@ |
||
6 | 6 | |
7 | 7 | class ModuleServiceProvider extends ServiceProvider |
8 | 8 | { |
9 | - /** |
|
10 | - * Bootstrap the module services. |
|
11 | - * |
|
12 | - * @return void |
|
13 | - */ |
|
14 | - public function boot() |
|
15 | - { |
|
16 | - $this->loadTranslationsFrom(__DIR__.'/../Resources/Lang', 'notifications'); |
|
17 | - $this->loadViewsFrom(__DIR__.'/../Resources/Views', 'notifications'); |
|
9 | + /** |
|
10 | + * Bootstrap the module services. |
|
11 | + * |
|
12 | + * @return void |
|
13 | + */ |
|
14 | + public function boot() |
|
15 | + { |
|
16 | + $this->loadTranslationsFrom(__DIR__.'/../Resources/Lang', 'notifications'); |
|
17 | + $this->loadViewsFrom(__DIR__.'/../Resources/Views', 'notifications'); |
|
18 | 18 | |
19 | - $this->loadMigrationsFrom(module_path('notifications', 'Database/Migrations', 'app')); |
|
20 | - $this->loadFactoriesFrom(module_path('notifications', 'Database/Factories', 'app')); |
|
21 | - if (!$this->app->configurationIsCached()) { |
|
22 | - $this->loadConfigsFrom(module_path('notifications', 'Config', 'app')); |
|
23 | - } |
|
24 | - } |
|
19 | + $this->loadMigrationsFrom(module_path('notifications', 'Database/Migrations', 'app')); |
|
20 | + $this->loadFactoriesFrom(module_path('notifications', 'Database/Factories', 'app')); |
|
21 | + if (!$this->app->configurationIsCached()) { |
|
22 | + $this->loadConfigsFrom(module_path('notifications', 'Config', 'app')); |
|
23 | + } |
|
24 | + } |
|
25 | 25 | |
26 | - /** |
|
27 | - * Register the module services. |
|
28 | - * |
|
29 | - * @return void |
|
30 | - */ |
|
31 | - public function register() |
|
32 | - { |
|
33 | - $this->app->register(RouteServiceProvider::class); |
|
34 | - } |
|
26 | + /** |
|
27 | + * Register the module services. |
|
28 | + * |
|
29 | + * @return void |
|
30 | + */ |
|
31 | + public function register() |
|
32 | + { |
|
33 | + $this->app->register(RouteServiceProvider::class); |
|
34 | + } |
|
35 | 35 | } |
@@ -18,7 +18,7 @@ |
||
18 | 18 | |
19 | 19 | $this->loadMigrationsFrom(module_path('notifications', 'Database/Migrations', 'app')); |
20 | 20 | $this->loadFactoriesFrom(module_path('notifications', 'Database/Factories', 'app')); |
21 | - if (!$this->app->configurationIsCached()) { |
|
21 | + if ( ! $this->app->configurationIsCached()) { |
|
22 | 22 | $this->loadConfigsFrom(module_path('notifications', 'Config', 'app')); |
23 | 23 | } |
24 | 24 | } |