@@ -27,8 +27,8 @@ |
||
27 | 27 | public function rules(): array |
28 | 28 | { |
29 | 29 | return [ |
30 | - 'name' => ['required', 'string', 'max:191'], |
|
31 | - 'email' => ['required', 'string', 'max:191', 'email', Rule::unique('users', 'email')], |
|
30 | + 'name' => [ 'required', 'string', 'max:191' ], |
|
31 | + 'email' => [ 'required', 'string', 'max:191', 'email', Rule::unique('users', 'email') ], |
|
32 | 32 | ]; |
33 | 33 | } |
34 | 34 | } |
@@ -29,8 +29,8 @@ |
||
29 | 29 | $user = $this->route()->parameter('user'); |
30 | 30 | |
31 | 31 | return [ |
32 | - 'name' => ['required', 'string', 'max:191'], |
|
33 | - 'email' => ['required', 'string', 'max:191', 'email', Rule::unique('users', 'email')->ignore($user)], |
|
32 | + 'name' => [ 'required', 'string', 'max:191' ], |
|
33 | + 'email' => [ 'required', 'string', 'max:191', 'email', Rule::unique('users', 'email')->ignore($user) ], |
|
34 | 34 | ]; |
35 | 35 | } |
36 | 36 | } |
@@ -26,11 +26,11 @@ |
||
26 | 26 | public function rules(): array |
27 | 27 | { |
28 | 28 | return [ |
29 | - 'name' => ['sometimes', 'string', 'max:191'], |
|
30 | - 'email' => ['sometimes', 'string', 'max:191'], |
|
31 | - 'sortBy' => ['sometimes', 'string', 'in:name,email'], |
|
32 | - 'desc' => ['sometimes', 'boolean'], |
|
33 | - 'perPage' => ['sometimes', 'integer', 'min:1', 'max:100'], |
|
29 | + 'name' => [ 'sometimes', 'string', 'max:191' ], |
|
30 | + 'email' => [ 'sometimes', 'string', 'max:191' ], |
|
31 | + 'sortBy' => [ 'sometimes', 'string', 'in:name,email' ], |
|
32 | + 'desc' => [ 'sometimes', 'boolean' ], |
|
33 | + 'perPage' => [ 'sometimes', 'integer', 'min:1', 'max:100' ], |
|
34 | 34 | ]; |
35 | 35 | } |
36 | 36 | } |
@@ -22,14 +22,14 @@ |
||
22 | 22 | 'current_password' => [ |
23 | 23 | 'required', |
24 | 24 | 'string', |
25 | - function ($attribute, $value, $fail) { |
|
25 | + function($attribute, $value, $fail) { |
|
26 | 26 | /** @var \App\Models\User $user */ |
27 | 27 | $user = $this->user(); |
28 | 28 | |
29 | 29 | /** @var Hasher $hasher */ |
30 | 30 | $hasher = $this->container->make(Hasher::class); |
31 | 31 | |
32 | - if (! $hasher->check($value, $user->getAuthPassword())) { |
|
32 | + if (!$hasher->check($value, $user->getAuthPassword())) { |
|
33 | 33 | $fail('Current password is invalid.'); |
34 | 34 | } |
35 | 35 | }, |
@@ -11,8 +11,8 @@ |
||
11 | 11 | public function rules(): array |
12 | 12 | { |
13 | 13 | return [ |
14 | - 'email' => ['required', 'string', 'email'], |
|
15 | - 'token' => ['required', 'string'], |
|
14 | + 'email' => [ 'required', 'string', 'email' ], |
|
15 | + 'token' => [ 'required', 'string' ], |
|
16 | 16 | ]; |
17 | 17 | } |
18 | 18 | } |
@@ -11,7 +11,7 @@ |
||
11 | 11 | public function rules(): array |
12 | 12 | { |
13 | 13 | return [ |
14 | - 'email' => ['required', 'string', 'email'], |
|
14 | + 'email' => [ 'required', 'string', 'email' ], |
|
15 | 15 | ]; |
16 | 16 | } |
17 | 17 | } |
@@ -11,7 +11,7 @@ |
||
11 | 11 | public function rules(): array |
12 | 12 | { |
13 | 13 | return [ |
14 | - 'name' => ['required', 'string', 'max:191'], |
|
14 | + 'name' => [ 'required', 'string', 'max:191' ], |
|
15 | 15 | ]; |
16 | 16 | } |
17 | 17 | } |
@@ -11,9 +11,9 @@ |
||
11 | 11 | public function rules(): array |
12 | 12 | { |
13 | 13 | return [ |
14 | - 'email' => ['required', 'string', 'email', 'max:191'], |
|
15 | - 'token' => ['required', 'string'], |
|
16 | - 'password' => ['required', 'string', 'min:10', 'confirmed'], |
|
14 | + 'email' => [ 'required', 'string', 'email', 'max:191' ], |
|
15 | + 'token' => [ 'required', 'string' ], |
|
16 | + 'password' => [ 'required', 'string', 'min:10', 'confirmed' ], |
|
17 | 17 | ]; |
18 | 18 | } |
19 | 19 | } |
@@ -11,8 +11,8 @@ |
||
11 | 11 | public function rules(): array |
12 | 12 | { |
13 | 13 | return [ |
14 | - 'name' => ['required', 'string', 'max:191'], |
|
15 | - 'email' => ['required', 'string', 'email', 'max:191'], |
|
14 | + 'name' => [ 'required', 'string', 'max:191' ], |
|
15 | + 'email' => [ 'required', 'string', 'email', 'max:191' ], |
|
16 | 16 | ]; |
17 | 17 | } |
18 | 18 | } |