Completed
Push — master ( 9d10f5...494c34 )
by Sherif
02:26
created
config/skeleton.php 1 patch
Indentation   +134 added lines, -134 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 return [
4 4
 
5
-    /*
5
+	/*
6 6
     |--------------------------------------------------------------------------
7 7
     | Disable Confirm Email
8 8
     |--------------------------------------------------------------------------
@@ -11,9 +11,9 @@  discard block
 block discarded – undo
11 11
     |
12 12
     */
13 13
 
14
-    'disable_confirm_email' => env('DISABLE_CONFIRM_EMAIL', false),
14
+	'disable_confirm_email' => env('DISABLE_CONFIRM_EMAIL', false),
15 15
 
16
-    /*
16
+	/*
17 17
     |--------------------------------------------------------------------------
18 18
     | Confirm Email URL
19 19
     |--------------------------------------------------------------------------
@@ -22,9 +22,9 @@  discard block
 block discarded – undo
22 22
     |
23 23
     */
24 24
    
25
-    'confrim_email_url' => env('CONFIRM_EMAIL_URL'),
25
+	'confrim_email_url' => env('CONFIRM_EMAIL_URL'),
26 26
 
27
-    /*
27
+	/*
28 28
     |--------------------------------------------------------------------------
29 29
     | Reset Password URL
30 30
     |--------------------------------------------------------------------------
@@ -33,9 +33,9 @@  discard block
 block discarded – undo
33 33
     |
34 34
     */
35 35
    
36
-    'reset_password_url' => env('RESET_PASSWORD_URL'),
36
+	'reset_password_url' => env('RESET_PASSWORD_URL'),
37 37
 
38
-    /*
38
+	/*
39 39
     |--------------------------------------------------------------------------
40 40
     | Passport Client Id
41 41
     |--------------------------------------------------------------------------
@@ -44,9 +44,9 @@  discard block
 block discarded – undo
44 44
     |
45 45
     */
46 46
    
47
-    'passport_client_id' => env('PASSWORD_CLIENT_ID'),
47
+	'passport_client_id' => env('PASSWORD_CLIENT_ID'),
48 48
 
49
-    /*
49
+	/*
50 50
     |--------------------------------------------------------------------------
51 51
     | Passport Client Secret
52 52
     |--------------------------------------------------------------------------
@@ -55,9 +55,9 @@  discard block
 block discarded – undo
55 55
     |
56 56
     */
57 57
    
58
-    'passport_client_secret' => env('PASSWORD_CLIENT_SECRET'),
58
+	'passport_client_secret' => env('PASSWORD_CLIENT_SECRET'),
59 59
 
60
-    /*
60
+	/*
61 61
     |--------------------------------------------------------------------------
62 62
     | Relations Between Models
63 63
     |--------------------------------------------------------------------------
@@ -66,88 +66,88 @@  discard block
 block discarded – undo
66 66
     |
67 67
     */
68 68
     
69
-    'relations' => [
70
-        'users' => [
71
-            'list'       => [],
72
-            'find'       => [],
73
-            'findby'     => [],
74
-            'paginate'   => [],
75
-            'paginateby' => [],
76
-            'first'      => [],
77
-            'search'     => [],
78
-            'account'    => [],
79
-            'group'      => [],
80
-            'deleted'    => [],
81
-        ],
82
-        'permissions' => [
83
-            'list'       => [],
84
-            'find'       => [],
85
-            'findby'     => [],
86
-            'paginate'   => [],
87
-            'paginateby' => [],
88
-            'first'      => [],
89
-            'search'     => [],
90
-            'deleted'    => [],
91
-        ],
92
-        'groups' => [
93
-            'list'       => [],
94
-            'find'       => [],
95
-            'findby'     => [],
96
-            'paginate'   => [],
97
-            'paginateby' => [],
98
-            'first'      => [],
99
-            'search'     => [],
100
-            'deleted'    => [],
101
-        ],
102
-        'oauthClients' => [
103
-            'list'       => [],
104
-            'find'       => [],
105
-            'findby'     => [],
106
-            'paginate'   => [],
107
-            'paginateby' => [],
108
-            'first'      => [],
109
-            'search'     => [],
110
-            'account'    => [],
111
-            'group'      => [],
112
-            'deleted'    => [],
113
-        ],
114
-        'notifications' => [
115
-            'list'   => [],
116
-            'unread' => [],
117
-        ],
118
-        'pushNotificationDevices' => [
119
-            'list'       => [],
120
-            'find'       => [],
121
-            'findby'     => [],
122
-            'paginate'   => [],
123
-            'paginateby' => [],
124
-            'first'      => [],
125
-            'search'     => [],
126
-            'deleted'    => [],
127
-        ],
128
-        'reports' => [
129
-            'list'       => [],
130
-            'find'       => [],
131
-            'findby'     => [],
132
-            'paginate'   => [],
133
-            'paginateby' => [],
134
-            'first'      => [],
135
-            'search'     => [],
136
-            'deleted'    => [],
137
-        ],
138
-        'settings' => [
139
-            'list'       => [],
140
-            'find'       => [],
141
-            'findby'     => [],
142
-            'paginate'   => [],
143
-            'paginateby' => [],
144
-            'first'      => [],
145
-            'search'     => [],
146
-            'deleted'    => [],
147
-        ]
148
-    ],
69
+	'relations' => [
70
+		'users' => [
71
+			'list'       => [],
72
+			'find'       => [],
73
+			'findby'     => [],
74
+			'paginate'   => [],
75
+			'paginateby' => [],
76
+			'first'      => [],
77
+			'search'     => [],
78
+			'account'    => [],
79
+			'group'      => [],
80
+			'deleted'    => [],
81
+		],
82
+		'permissions' => [
83
+			'list'       => [],
84
+			'find'       => [],
85
+			'findby'     => [],
86
+			'paginate'   => [],
87
+			'paginateby' => [],
88
+			'first'      => [],
89
+			'search'     => [],
90
+			'deleted'    => [],
91
+		],
92
+		'groups' => [
93
+			'list'       => [],
94
+			'find'       => [],
95
+			'findby'     => [],
96
+			'paginate'   => [],
97
+			'paginateby' => [],
98
+			'first'      => [],
99
+			'search'     => [],
100
+			'deleted'    => [],
101
+		],
102
+		'oauthClients' => [
103
+			'list'       => [],
104
+			'find'       => [],
105
+			'findby'     => [],
106
+			'paginate'   => [],
107
+			'paginateby' => [],
108
+			'first'      => [],
109
+			'search'     => [],
110
+			'account'    => [],
111
+			'group'      => [],
112
+			'deleted'    => [],
113
+		],
114
+		'notifications' => [
115
+			'list'   => [],
116
+			'unread' => [],
117
+		],
118
+		'pushNotificationDevices' => [
119
+			'list'       => [],
120
+			'find'       => [],
121
+			'findby'     => [],
122
+			'paginate'   => [],
123
+			'paginateby' => [],
124
+			'first'      => [],
125
+			'search'     => [],
126
+			'deleted'    => [],
127
+		],
128
+		'reports' => [
129
+			'list'       => [],
130
+			'find'       => [],
131
+			'findby'     => [],
132
+			'paginate'   => [],
133
+			'paginateby' => [],
134
+			'first'      => [],
135
+			'search'     => [],
136
+			'deleted'    => [],
137
+		],
138
+		'settings' => [
139
+			'list'       => [],
140
+			'find'       => [],
141
+			'findby'     => [],
142
+			'paginate'   => [],
143
+			'paginateby' => [],
144
+			'first'      => [],
145
+			'search'     => [],
146
+			'deleted'    => [],
147
+		]
148
+	],
149 149
 
150
-    /*
150
+	/*
151 151
     |--------------------------------------------------------------------------
152 152
     | Cache Configurations
153 153
     |--------------------------------------------------------------------------
@@ -156,46 +156,46 @@  discard block
 block discarded – undo
156 156
     |
157 157
     */
158 158
 
159
-    'cache_config' => [
160
-        'oauthClients' => [
161
-            'cache' => [
162
-                'all',
163
-                'find',
164
-                'findBy',
165
-                'paginate',
166
-                'paginateBy',
167
-                'first',
168
-                'search',
169
-                'deleted'
170
-            ],
171
-            'clear' => [
172
-                'update'           => ['oauthClients', 'users', 'groups'],
173
-                'save'             => ['oauthClients', 'users', 'groups'],
174
-                'delete'           => ['oauthClients', 'users', 'groups'],
175
-                'restore'          => ['oauthClients', 'users', 'groups'],
176
-                'revoke'           => ['oauthClients', 'users', 'groups'],
177
-                'ubRevoke'         => ['oauthClients', 'users', 'groups'],
178
-                'regenerateSecret' => ['oauthClients', 'users', 'groups'],
179
-            ],
180
-        ],
181
-        'settings' => [
182
-            'cache' => [
183
-                'all',
184
-                'find',
185
-                'findBy',
186
-                'paginate',
187
-                'paginateBy',
188
-                'first',
189
-                'search',
190
-                'deleted'
191
-            ],
192
-            'clear' => [
193
-                'update'   => ['settings'],
194
-                'save'     => ['settings'],
195
-                'delete'   => ['settings'],
196
-                'restore'  => ['settings'],
197
-                'saveMany' => ['settings'],
198
-            ]
199
-        ]
200
-    ]
159
+	'cache_config' => [
160
+		'oauthClients' => [
161
+			'cache' => [
162
+				'all',
163
+				'find',
164
+				'findBy',
165
+				'paginate',
166
+				'paginateBy',
167
+				'first',
168
+				'search',
169
+				'deleted'
170
+			],
171
+			'clear' => [
172
+				'update'           => ['oauthClients', 'users', 'groups'],
173
+				'save'             => ['oauthClients', 'users', 'groups'],
174
+				'delete'           => ['oauthClients', 'users', 'groups'],
175
+				'restore'          => ['oauthClients', 'users', 'groups'],
176
+				'revoke'           => ['oauthClients', 'users', 'groups'],
177
+				'ubRevoke'         => ['oauthClients', 'users', 'groups'],
178
+				'regenerateSecret' => ['oauthClients', 'users', 'groups'],
179
+			],
180
+		],
181
+		'settings' => [
182
+			'cache' => [
183
+				'all',
184
+				'find',
185
+				'findBy',
186
+				'paginate',
187
+				'paginateBy',
188
+				'first',
189
+				'search',
190
+				'deleted'
191
+			],
192
+			'clear' => [
193
+				'update'   => ['settings'],
194
+				'save'     => ['settings'],
195
+				'delete'   => ['settings'],
196
+				'restore'  => ['settings'],
197
+				'saveMany' => ['settings'],
198
+			]
199
+		]
200
+	]
201 201
 ];
Please login to merge, or discard this patch.
src/Modules/Core/Resources/Lang/en/errors.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -2,27 +2,27 @@
 block discarded – undo
2 2
 
3 3
 return [
4 4
     
5
-    /**
6
-     * List of error messages used in core module.
7
-     */
8
-    'unAuthorized'           => 'Please login before any action',
9
-    'invalidRefreshToken'    => 'Invalid refresh token',
10
-    'noPermissions'          => 'No permissions',
11
-    'loginFailed'            => 'Wrong mail or password',
12
-    'noSocialEmail'          => 'Couldn\'t retrieve email',
13
-    'userAlreadyRegistered'  => 'User already registered. Please login using email and password',
14
-    'connectionError'        => 'Connection error',
15
-    'redisNotRunning'        => 'Your redis notification server is\'t running',
16
-    'dbQueryError'           => 'Please check the given inputes',
17
-    'cannotCreateSetting'    => 'Can\'t create setting',
18
-    'cannotUpdateSettingKey' => 'Can\'t update setting key',
19
-    'userIsBlocked'          => 'You have been blocked',
20
-    'invalidResetToken'      => 'Reset password token is invalid',
21
-    'invalidResetPassword'   => 'Reset password is invalid',
22
-    'invalidOldPassword'     => 'Old password is invalid',
23
-    'notFound'               => 'The requested :replace not found',
24
-    'generalError'           => 'Something went wrong',
25
-    'emailNotConfirmed'      => 'Your email isn\'t confirmed',
26
-    'emailAlreadyConfirmed'  => 'Your email is already confirmed'
5
+	/**
6
+	 * List of error messages used in core module.
7
+	 */
8
+	'unAuthorized'           => 'Please login before any action',
9
+	'invalidRefreshToken'    => 'Invalid refresh token',
10
+	'noPermissions'          => 'No permissions',
11
+	'loginFailed'            => 'Wrong mail or password',
12
+	'noSocialEmail'          => 'Couldn\'t retrieve email',
13
+	'userAlreadyRegistered'  => 'User already registered. Please login using email and password',
14
+	'connectionError'        => 'Connection error',
15
+	'redisNotRunning'        => 'Your redis notification server is\'t running',
16
+	'dbQueryError'           => 'Please check the given inputes',
17
+	'cannotCreateSetting'    => 'Can\'t create setting',
18
+	'cannotUpdateSettingKey' => 'Can\'t update setting key',
19
+	'userIsBlocked'          => 'You have been blocked',
20
+	'invalidResetToken'      => 'Reset password token is invalid',
21
+	'invalidResetPassword'   => 'Reset password is invalid',
22
+	'invalidOldPassword'     => 'Old password is invalid',
23
+	'notFound'               => 'The requested :replace not found',
24
+	'generalError'           => 'Something went wrong',
25
+	'emailNotConfirmed'      => 'Your email isn\'t confirmed',
26
+	'emailAlreadyConfirmed'  => 'Your email is already confirmed'
27 27
 
28 28
 ];
29 29
\ No newline at end of file
Please login to merge, or discard this patch.
src/Modules/Core/Resources/Lang/ar/errors.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -2,27 +2,27 @@
 block discarded – undo
2 2
 
3 3
 return [
4 4
     
5
-    /**
6
-     * List of error messages used in core module.
7
-     */
8
-    'unAuthorized'           => 'من فضلك قم بتسجيل الدخول',
9
-    'invalidRefreshToken'    => 'رمز التحديث غير صالح',
10
-    'noPermissions'          => 'لا توجد صلاحية',
11
-    'loginFailed'            => 'خطأ في البريد لاكتروني او كلمة المرور',
12
-    'noSocialEmail'          => 'لا يمكن الحصول علي تابريد الاكتروني',
13
-    'userAlreadyRegistered'  => 'المستخد مسجل بالفعل.سجل الدخول بالبريد الاكتروني و كلمة السر',
14
-    'connectionError'        => 'خطأ في الاتصال',
15
-    'redisNotRunning'        => 'سيرفير الاشعارات لايعمل',
16
-    'dbQueryError'           => 'خطا في البيانات',
17
-    'cannotCreateSetting'    => 'لا يمكن اضافة اعدادات',
18
-    'cannotUpdateSettingKey' => 'لا يمكن تعديل اعدادات',
19
-    'userIsBlocked'          => 'لقد تم حظرك',
20
-    'invalidResetToken'      => 'رمز تعديل كلمة المرور خطا',
21
-    'invalidResetPassword'   => 'خطا في نعديل كلمة المرور',
22
-    'invalidOldPassword'     => 'كلمة السر القديمه خطا',
23
-    'notFound'               => 'ال :replace المطلوب غير موجود',
24
-    'generalError'           => 'حدث خطا ما',
25
-    'emailNotConfirmed'      => 'بريدك الاكتروني غير مفعل',
26
-    'emailAlreadyConfirmed'  => 'البريد الاكتروني مفع بالقعل'
5
+	/**
6
+	 * List of error messages used in core module.
7
+	 */
8
+	'unAuthorized'           => 'من فضلك قم بتسجيل الدخول',
9
+	'invalidRefreshToken'    => 'رمز التحديث غير صالح',
10
+	'noPermissions'          => 'لا توجد صلاحية',
11
+	'loginFailed'            => 'خطأ في البريد لاكتروني او كلمة المرور',
12
+	'noSocialEmail'          => 'لا يمكن الحصول علي تابريد الاكتروني',
13
+	'userAlreadyRegistered'  => 'المستخد مسجل بالفعل.سجل الدخول بالبريد الاكتروني و كلمة السر',
14
+	'connectionError'        => 'خطأ في الاتصال',
15
+	'redisNotRunning'        => 'سيرفير الاشعارات لايعمل',
16
+	'dbQueryError'           => 'خطا في البيانات',
17
+	'cannotCreateSetting'    => 'لا يمكن اضافة اعدادات',
18
+	'cannotUpdateSettingKey' => 'لا يمكن تعديل اعدادات',
19
+	'userIsBlocked'          => 'لقد تم حظرك',
20
+	'invalidResetToken'      => 'رمز تعديل كلمة المرور خطا',
21
+	'invalidResetPassword'   => 'خطا في نعديل كلمة المرور',
22
+	'invalidOldPassword'     => 'كلمة السر القديمه خطا',
23
+	'notFound'               => 'ال :replace المطلوب غير موجود',
24
+	'generalError'           => 'حدث خطا ما',
25
+	'emailNotConfirmed'      => 'بريدك الاكتروني غير مفعل',
26
+	'emailAlreadyConfirmed'  => 'البريد الاكتروني مفع بالقعل'
27 27
 
28 28
 ];
29 29
\ No newline at end of file
Please login to merge, or discard this patch.
src/Modules/Notifications/Resources/Lang/en/notifications.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 return [
4 4
     
5
-    /**
6
-     * Here goes your notification messages.
7
-     */
5
+	/**
6
+	 * Here goes your notification messages.
7
+	 */
8 8
 
9 9
 ];
10 10
\ No newline at end of file
Please login to merge, or discard this patch.
src/Modules/Notifications/Resources/Lang/ar/notifications.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 return [
4 4
     
5
-    /**
6
-     * Here goes your notification messages.
7
-     */
5
+	/**
6
+	 * Here goes your notification messages.
7
+	 */
8 8
 
9 9
 ];
10 10
\ No newline at end of file
Please login to merge, or discard this patch.
files/AuthServiceProvider.php 1 patch
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -8,31 +8,31 @@
 block discarded – undo
8 8
 
9 9
 class AuthServiceProvider extends ServiceProvider
10 10
 {
11
-    /**
12
-     * The policy mappings for the application.
13
-     *
14
-     * @var array
15
-     */
16
-    protected $policies = [
17
-        'App\Model' => 'App\Policies\ModelPolicy',
18
-    ];
11
+	/**
12
+	 * The policy mappings for the application.
13
+	 *
14
+	 * @var array
15
+	 */
16
+	protected $policies = [
17
+		'App\Model' => 'App\Policies\ModelPolicy',
18
+	];
19 19
 
20
-    /**
21
-     * Register any authentication / authorization services.
22
-     *
23
-     * @return void
24
-     */
25
-    public function boot()
26
-    {
27
-        $this->registerPolicies();
20
+	/**
21
+	 * Register any authentication / authorization services.
22
+	 *
23
+	 * @return void
24
+	 */
25
+	public function boot()
26
+	{
27
+		$this->registerPolicies();
28 28
 
29
-        Passport::routes(function ($router) {
30
-            $router->forAuthorization();
31
-            $router->forAccessTokens();
32
-            $router->forPersonalAccessTokens();
33
-            $router->forTransientTokens();
34
-        });
35
-        Passport::tokensExpireIn(\Carbon\Carbon::now()->addMinutes(10));
36
-        Passport::refreshTokensExpireIn(\Carbon\Carbon::now()->addDays(10));
37
-    }
29
+		Passport::routes(function ($router) {
30
+			$router->forAuthorization();
31
+			$router->forAccessTokens();
32
+			$router->forPersonalAccessTokens();
33
+			$router->forTransientTokens();
34
+		});
35
+		Passport::tokensExpireIn(\Carbon\Carbon::now()->addMinutes(10));
36
+		Passport::refreshTokensExpireIn(\Carbon\Carbon::now()->addDays(10));
37
+	}
38 38
 }
Please login to merge, or discard this patch.
files/auth.php 1 patch
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 return [
4 4
 
5
-    /*
5
+	/*
6 6
     |--------------------------------------------------------------------------
7 7
     | Authentication Defaults
8 8
     |--------------------------------------------------------------------------
@@ -13,12 +13,12 @@  discard block
 block discarded – undo
13 13
     |
14 14
     */
15 15
 
16
-    'defaults' => [
17
-        'guard' => 'web',
18
-        'passwords' => 'users',
19
-    ],
16
+	'defaults' => [
17
+		'guard' => 'web',
18
+		'passwords' => 'users',
19
+	],
20 20
 
21
-    /*
21
+	/*
22 22
     |--------------------------------------------------------------------------
23 23
     | Authentication Guards
24 24
     |--------------------------------------------------------------------------
@@ -35,19 +35,19 @@  discard block
 block discarded – undo
35 35
     |
36 36
     */
37 37
 
38
-    'guards' => [
39
-        'web' => [
40
-            'driver' => 'session',
41
-            'provider' => 'users',
42
-        ],
38
+	'guards' => [
39
+		'web' => [
40
+			'driver' => 'session',
41
+			'provider' => 'users',
42
+		],
43 43
 
44
-        'api' => [
45
-            'driver' => 'passport',
46
-            'provider' => 'users',
47
-        ],
48
-    ],
44
+		'api' => [
45
+			'driver' => 'passport',
46
+			'provider' => 'users',
47
+		],
48
+	],
49 49
 
50
-    /*
50
+	/*
51 51
     |--------------------------------------------------------------------------
52 52
     | User Providers
53 53
     |--------------------------------------------------------------------------
@@ -64,19 +64,19 @@  discard block
 block discarded – undo
64 64
     |
65 65
     */
66 66
 
67
-    'providers' => [
68
-        'users' => [
69
-            'driver' => 'eloquent',
70
-            'model' => App\Modules\Acl\AclUser::class,
71
-        ],
67
+	'providers' => [
68
+		'users' => [
69
+			'driver' => 'eloquent',
70
+			'model' => App\Modules\Acl\AclUser::class,
71
+		],
72 72
 
73
-        // 'users' => [
74
-        //     'driver' => 'database',
75
-        //     'table' => 'users',
76
-        // ],
77
-    ],
73
+		// 'users' => [
74
+		//     'driver' => 'database',
75
+		//     'table' => 'users',
76
+		// ],
77
+	],
78 78
 
79
-    /*
79
+	/*
80 80
     |--------------------------------------------------------------------------
81 81
     | Resetting Passwords
82 82
     |--------------------------------------------------------------------------
@@ -91,12 +91,12 @@  discard block
 block discarded – undo
91 91
     |
92 92
     */
93 93
 
94
-    'passwords' => [
95
-        'users' => [
96
-            'provider' => 'users',
97
-            'table' => 'password_resets',
98
-            'expire' => 60,
99
-        ],
100
-    ],
94
+	'passwords' => [
95
+		'users' => [
96
+			'provider' => 'users',
97
+			'table' => 'password_resets',
98
+			'expire' => 60,
99
+		],
100
+	],
101 101
 
102 102
 ];
Please login to merge, or discard this patch.
files/Handler.php 1 patch
Indentation   +74 added lines, -74 removed lines patch added patch discarded remove patch
@@ -7,81 +7,81 @@
 block discarded – undo
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
-     * This is a great spot to send exceptions to Sentry, Bugsnag, etc.
33
-     *
34
-     * @param  \Exception  $exception
35
-     * @return void
36
-     */
37
-    public function report(Exception $exception)
38
-    {
39
-        parent::report($exception);
40
-    }
29
+	/**
30
+	 * Report or log an exception.
31
+	 *
32
+	 * This is a great spot to send exceptions to Sentry, Bugsnag, etc.
33
+	 *
34
+	 * @param  \Exception  $exception
35
+	 * @return void
36
+	 */
37
+	public function report(Exception $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  \Exception  $exception
47
-     * @return \Illuminate\Http\Response
48
-     */
49
-    public function render($request, Exception $exception)
50
-    {
51
-        if ($request->wantsJson())
52
-        {
53
-            if ($exception instanceof \Illuminate\Auth\AuthenticationException) 
54
-            {
55
-                \ErrorHandler::unAuthorized();
56
-            }
57
-            if ($exception instanceof \Illuminate\Database\QueryException) 
58
-            {
59
-                \ErrorHandler::dbQueryError();
60
-            }
61
-            else if ($exception instanceof \predis\connection\connectionexception) 
62
-            {
63
-                \ErrorHandler::redisNotRunning();
64
-            }
65
-            else if ($exception instanceof \GuzzleHttp\Exception\ClientException) 
66
-            {
67
-                \ErrorHandler::connectionError();
68
-            }
69
-            else if ($exception instanceof \Symfony\Component\HttpKernel\Exception\HttpException) 
70
-            {
71
-                return \Response::json($exception->getMessage(), $exception->getStatusCode());   
72
-            }
73
-            else if ($exception instanceof \Illuminate\Validation\ValidationException) 
74
-            {
75
-                return \Response::json($exception->errors(), 422);   
76
-            }
77
-            else if ( ! $exception instanceof \Symfony\Component\Debug\Exception\FatalErrorException)
78
-            {
79
-                return parent::render($request, $exception);
80
-            }
81
-        }
82
-        else
83
-        {
84
-            return parent::render($request, $exception);
85
-        }
86
-    }
42
+	/**
43
+	 * Render an exception into an HTTP response.
44
+	 *
45
+	 * @param  \Illuminate\Http\Request  $request
46
+	 * @param  \Exception  $exception
47
+	 * @return \Illuminate\Http\Response
48
+	 */
49
+	public function render($request, Exception $exception)
50
+	{
51
+		if ($request->wantsJson())
52
+		{
53
+			if ($exception instanceof \Illuminate\Auth\AuthenticationException) 
54
+			{
55
+				\ErrorHandler::unAuthorized();
56
+			}
57
+			if ($exception instanceof \Illuminate\Database\QueryException) 
58
+			{
59
+				\ErrorHandler::dbQueryError();
60
+			}
61
+			else if ($exception instanceof \predis\connection\connectionexception) 
62
+			{
63
+				\ErrorHandler::redisNotRunning();
64
+			}
65
+			else if ($exception instanceof \GuzzleHttp\Exception\ClientException) 
66
+			{
67
+				\ErrorHandler::connectionError();
68
+			}
69
+			else if ($exception instanceof \Symfony\Component\HttpKernel\Exception\HttpException) 
70
+			{
71
+				return \Response::json($exception->getMessage(), $exception->getStatusCode());   
72
+			}
73
+			else if ($exception instanceof \Illuminate\Validation\ValidationException) 
74
+			{
75
+				return \Response::json($exception->errors(), 422);   
76
+			}
77
+			else if ( ! $exception instanceof \Symfony\Component\Debug\Exception\FatalErrorException)
78
+			{
79
+				return parent::render($request, $exception);
80
+			}
81
+		}
82
+		else
83
+		{
84
+			return parent::render($request, $exception);
85
+		}
86
+	}
87 87
 }
Please login to merge, or discard this patch.
files/BroadcastServiceProvider.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -7,15 +7,15 @@
 block discarded – undo
7 7
 
8 8
 class BroadcastServiceProvider extends ServiceProvider
9 9
 {
10
-    /**
11
-     * Bootstrap any application services.
12
-     *
13
-     * @return void
14
-     */
15
-    public function boot()
16
-    {
17
-        Broadcast::routes(['middleware' => ['auth:api']]);
10
+	/**
11
+	 * Bootstrap any application services.
12
+	 *
13
+	 * @return void
14
+	 */
15
+	public function boot()
16
+	{
17
+		Broadcast::routes(['middleware' => ['auth:api']]);
18 18
 
19
-        require base_path('routes/channels.php');
20
-    }
19
+		require base_path('routes/channels.php');
20
+	}
21 21
 }
Please login to merge, or discard this patch.