@@ -13,7 +13,7 @@ |
||
13 | 13 | | |
14 | 14 | */ |
15 | 15 | |
16 | -Route::group(['prefix' => 'push/notification/devices'], function () { |
|
16 | +Route::group(['prefix' => 'push/notification/devices'], function() { |
|
17 | 17 | |
18 | 18 | Route::get('/', 'PushNotificationDeviceController@index'); |
19 | 19 | Route::get('{id}', 'PushNotificationDeviceController@show'); |
@@ -15,11 +15,11 @@ |
||
15 | 15 | |
16 | 16 | Route::group(['prefix' => 'push/notification/devices'], function () { |
17 | 17 | |
18 | - Route::get('/', 'PushNotificationDeviceController@index'); |
|
19 | - Route::get('{id}', 'PushNotificationDeviceController@show'); |
|
20 | - Route::post('/', 'PushNotificationDeviceController@store'); |
|
21 | - Route::patch('{id}', 'PushNotificationDeviceController@update'); |
|
22 | - Route::delete('{id}', 'PushNotificationDeviceController@destroy'); |
|
23 | - Route::patch('restore/{id}', 'PushNotificationDeviceController@restore'); |
|
24 | - Route::post('register/device', 'PushNotificationDeviceController@registerDevice'); |
|
18 | + Route::get('/', 'PushNotificationDeviceController@index'); |
|
19 | + Route::get('{id}', 'PushNotificationDeviceController@show'); |
|
20 | + Route::post('/', 'PushNotificationDeviceController@store'); |
|
21 | + Route::patch('{id}', 'PushNotificationDeviceController@update'); |
|
22 | + Route::delete('{id}', 'PushNotificationDeviceController@destroy'); |
|
23 | + Route::patch('restore/{id}', 'PushNotificationDeviceController@restore'); |
|
24 | + Route::post('register/device', 'PushNotificationDeviceController@registerDevice'); |
|
25 | 25 | }); |
@@ -6,52 +6,52 @@ |
||
6 | 6 | |
7 | 7 | class SettingsTableSeeder extends Seeder |
8 | 8 | { |
9 | - /** |
|
10 | - * Run the database seeds. |
|
11 | - * |
|
12 | - * @return void |
|
13 | - */ |
|
14 | - public function run() |
|
15 | - { |
|
16 | - /** |
|
17 | - * Insert the permissions related to settings table. |
|
18 | - */ |
|
19 | - \DB::table('permissions')->insert( |
|
20 | - [ |
|
21 | - /** |
|
22 | - * Settings model permissions. |
|
23 | - */ |
|
24 | - [ |
|
25 | - 'name' => 'index', |
|
26 | - 'model' => 'setting', |
|
27 | - 'created_at' => \DB::raw('NOW()'), |
|
28 | - 'updated_at' => \DB::raw('NOW()') |
|
29 | - ], |
|
30 | - [ |
|
31 | - 'name' => 'show', |
|
32 | - 'model' => 'setting', |
|
33 | - 'created_at' => \DB::raw('NOW()'), |
|
34 | - 'updated_at' => \DB::raw('NOW()') |
|
35 | - ], |
|
36 | - [ |
|
37 | - 'name' => 'update', |
|
38 | - 'model' => 'setting', |
|
39 | - 'created_at' => \DB::raw('NOW()'), |
|
40 | - 'updated_at' => \DB::raw('NOW()') |
|
41 | - ], |
|
42 | - [ |
|
43 | - 'name' => 'destroy', |
|
44 | - 'model' => 'setting', |
|
45 | - 'created_at' => \DB::raw('NOW()'), |
|
46 | - 'updated_at' => \DB::raw('NOW()') |
|
47 | - ], |
|
48 | - [ |
|
49 | - 'name' => 'saveMany', |
|
50 | - 'model' => 'setting', |
|
51 | - 'created_at' => \DB::raw('NOW()'), |
|
52 | - 'updated_at' => \DB::raw('NOW()') |
|
53 | - ] |
|
54 | - ] |
|
55 | - ); |
|
56 | - } |
|
9 | + /** |
|
10 | + * Run the database seeds. |
|
11 | + * |
|
12 | + * @return void |
|
13 | + */ |
|
14 | + public function run() |
|
15 | + { |
|
16 | + /** |
|
17 | + * Insert the permissions related to settings table. |
|
18 | + */ |
|
19 | + \DB::table('permissions')->insert( |
|
20 | + [ |
|
21 | + /** |
|
22 | + * Settings model permissions. |
|
23 | + */ |
|
24 | + [ |
|
25 | + 'name' => 'index', |
|
26 | + 'model' => 'setting', |
|
27 | + 'created_at' => \DB::raw('NOW()'), |
|
28 | + 'updated_at' => \DB::raw('NOW()') |
|
29 | + ], |
|
30 | + [ |
|
31 | + 'name' => 'show', |
|
32 | + 'model' => 'setting', |
|
33 | + 'created_at' => \DB::raw('NOW()'), |
|
34 | + 'updated_at' => \DB::raw('NOW()') |
|
35 | + ], |
|
36 | + [ |
|
37 | + 'name' => 'update', |
|
38 | + 'model' => 'setting', |
|
39 | + 'created_at' => \DB::raw('NOW()'), |
|
40 | + 'updated_at' => \DB::raw('NOW()') |
|
41 | + ], |
|
42 | + [ |
|
43 | + 'name' => 'destroy', |
|
44 | + 'model' => 'setting', |
|
45 | + 'created_at' => \DB::raw('NOW()'), |
|
46 | + 'updated_at' => \DB::raw('NOW()') |
|
47 | + ], |
|
48 | + [ |
|
49 | + 'name' => 'saveMany', |
|
50 | + 'model' => 'setting', |
|
51 | + 'created_at' => \DB::raw('NOW()'), |
|
52 | + 'updated_at' => \DB::raw('NOW()') |
|
53 | + ] |
|
54 | + ] |
|
55 | + ); |
|
56 | + } |
|
57 | 57 | } |
@@ -6,25 +6,25 @@ |
||
6 | 6 | |
7 | 7 | class StoreSetting extends FormRequest |
8 | 8 | { |
9 | - /** |
|
10 | - * Determine if the user is authorized to make this request. |
|
11 | - * |
|
12 | - * @return bool |
|
13 | - */ |
|
14 | - public function authorize() |
|
15 | - { |
|
16 | - return true; |
|
17 | - } |
|
9 | + /** |
|
10 | + * Determine if the user is authorized to make this request. |
|
11 | + * |
|
12 | + * @return bool |
|
13 | + */ |
|
14 | + public function authorize() |
|
15 | + { |
|
16 | + return true; |
|
17 | + } |
|
18 | 18 | |
19 | - /** |
|
20 | - * Get the validation rules that apply to the request. |
|
21 | - * |
|
22 | - * @return array |
|
23 | - */ |
|
24 | - public function rules() |
|
25 | - { |
|
26 | - return [ |
|
27 | - 'value' => 'required|string' |
|
28 | - ]; |
|
29 | - } |
|
19 | + /** |
|
20 | + * Get the validation rules that apply to the request. |
|
21 | + * |
|
22 | + * @return array |
|
23 | + */ |
|
24 | + public function rules() |
|
25 | + { |
|
26 | + return [ |
|
27 | + 'value' => 'required|string' |
|
28 | + ]; |
|
29 | + } |
|
30 | 30 | } |
@@ -15,10 +15,10 @@ |
||
15 | 15 | |
16 | 16 | Route::group(['prefix' => 'DummyRoutePrefix'], function () { |
17 | 17 | |
18 | - Route::get('/', 'DummyController@index'); |
|
19 | - Route::get('{id}', 'DummyController@show'); |
|
20 | - Route::post('/', 'DummyController@store'); |
|
21 | - Route::patch('{id}', 'DummyController@update'); |
|
22 | - Route::delete('{id}', 'DummyController@destroy'); |
|
23 | - Route::patch('restore/{id}', 'DummyController@restore'); |
|
18 | + Route::get('/', 'DummyController@index'); |
|
19 | + Route::get('{id}', 'DummyController@show'); |
|
20 | + Route::post('/', 'DummyController@store'); |
|
21 | + Route::patch('{id}', 'DummyController@update'); |
|
22 | + Route::delete('{id}', 'DummyController@destroy'); |
|
23 | + Route::patch('restore/{id}', 'DummyController@restore'); |
|
24 | 24 | }); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | | |
14 | 14 | */ |
15 | 15 | |
16 | -Route::group(['prefix' => 'DummyRoutePrefix'], function () { |
|
16 | +Route::group(['prefix' => 'DummyRoutePrefix'], function() { |
|
17 | 17 | |
18 | 18 | Route::get('/', 'DummyController@index'); |
19 | 19 | Route::get('{id}', 'DummyController@show'); |
@@ -11,7 +11,7 @@ |
||
11 | 11 | | |
12 | 12 | */ |
13 | 13 | |
14 | -Route::group(['prefix' => 'settings'], function () { |
|
14 | +Route::group(['prefix' => 'settings'], function() { |
|
15 | 15 | |
16 | 16 | Route::get('/', 'SettingController@index'); |
17 | 17 | Route::get('{id}', 'SettingController@show'); |
@@ -13,8 +13,8 @@ |
||
13 | 13 | |
14 | 14 | Route::group(['prefix' => 'settings'], function () { |
15 | 15 | |
16 | - Route::get('/', 'SettingController@index'); |
|
17 | - Route::get('{id}', 'SettingController@show'); |
|
18 | - Route::patch('{id}', 'SettingController@update'); |
|
19 | - Route::post('save/many', 'SettingController@saveMany'); |
|
16 | + Route::get('/', 'SettingController@index'); |
|
17 | + Route::get('{id}', 'SettingController@show'); |
|
18 | + Route::patch('{id}', 'SettingController@update'); |
|
19 | + Route::post('save/many', 'SettingController@saveMany'); |
|
20 | 20 | }); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | | |
14 | 14 | */ |
15 | 15 | |
16 | -Route::group(['prefix' => 'roles'], function () { |
|
16 | +Route::group(['prefix' => 'roles'], function() { |
|
17 | 17 | |
18 | 18 | Route::get('/', 'RoleController@index'); |
19 | 19 | Route::get('{id}', 'RoleController@show'); |
@@ -15,11 +15,11 @@ |
||
15 | 15 | |
16 | 16 | Route::group(['prefix' => 'roles'], function () { |
17 | 17 | |
18 | - Route::get('/', 'RoleController@index'); |
|
19 | - Route::get('{id}', 'RoleController@show'); |
|
20 | - Route::post('/', 'RoleController@store'); |
|
21 | - Route::patch('{id}', 'RoleController@update'); |
|
22 | - Route::delete('{id}', 'RoleController@destroy'); |
|
23 | - Route::patch('restore/{id}', 'RoleController@restore'); |
|
24 | - Route::patch('assign/permissions/{id}', 'RoleController@assignPermissions'); |
|
18 | + Route::get('/', 'RoleController@index'); |
|
19 | + Route::get('{id}', 'RoleController@show'); |
|
20 | + Route::post('/', 'RoleController@store'); |
|
21 | + Route::patch('{id}', 'RoleController@update'); |
|
22 | + Route::delete('{id}', 'RoleController@destroy'); |
|
23 | + Route::patch('restore/{id}', 'RoleController@restore'); |
|
24 | + Route::patch('assign/permissions/{id}', 'RoleController@assignPermissions'); |
|
25 | 25 | }); |
@@ -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 | } |