@@ 7-21 (lines=15) @@ | ||
4 | ||
5 | use Illuminate\Foundation\Http\FormRequest; |
|
6 | ||
7 | class IssueTokenRequest extends FormRequest |
|
8 | { |
|
9 | public function authorize(): bool |
|
10 | { |
|
11 | return true; |
|
12 | } |
|
13 | ||
14 | public function rules() |
|
15 | { |
|
16 | return [ |
|
17 | 'email' => ['required', 'email'], |
|
18 | 'password' => ['required', 'string'], |
|
19 | ]; |
|
20 | } |
|
21 | } |
|
22 |
@@ 7-21 (lines=15) @@ | ||
4 | ||
5 | use Illuminate\Foundation\Http\FormRequest; |
|
6 | ||
7 | class LoginRequest extends FormRequest |
|
8 | { |
|
9 | public function authorize(): bool |
|
10 | { |
|
11 | return true; |
|
12 | } |
|
13 | ||
14 | public function rules() |
|
15 | { |
|
16 | return [ |
|
17 | 'email' => ['required', 'email'], |
|
18 | 'password' => ['required', 'string'], |
|
19 | ]; |
|
20 | } |
|
21 | } |
|
22 |