Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
AuthenticateRequest
n/a
0 / 0
n/a
0 / 0
2
n/a
0 / 0
 authorize
n/a
0 / 0
n/a
0 / 0
1
 rules
n/a
0 / 0
n/a
0 / 0
1
1<?php
2
3namespace App\Http\Requests\Api\V2;
4
5/**
6 * @codeCoverageIgnore
7 */
8class AuthenticateRequest extends BaseApiRequest
9{
10    /**
11     * Determine if the user is authorized to make this request.
12     *
13     * @return boolean
14     */
15    public function authorize(): bool
16    {
17        return true;
18    }
19
20    /**
21     * Get the validation rules that apply to the request.
22     *
23     * @return array
24     */
25    public function rules(): array
26    {
27        return [
28            'email'    => 'required|email:rfc',
29            'password' => 'required'
30        ];
31    }
32}