Completed
Push — master ( 426919...c350dd )
by Eric
05:00
created

PasswordGrantProxyControllerRequest::rules()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
namespace App\Http\Requests;
3
use Illuminate\Foundation\Http\FormRequest;
4
/**
5
 * Class PasswordGrantProxyControllerRequest.
6
 *
7
 * @package App\Http\Requests
8
 */
9
class PasswordGrantProxyControllerRequest extends FormRequest
10
{
11
    /**
12
     * Determine if the user is authorized to make this request.
13
     *
14
     * @return bool
15
     */
16
    public function authorize()
17
    {
18
        return true;
19
    }
20
    /**
21
     * Get the validation rules that apply to the request.
22
     *
23
     * @return array
24
     */
25
    public function rules()
26
    {
27
        return [
28
            'username' => 'required|email|max:255',
29
            'password' => 'required|min:6',
30
        ];
31
    }
32
}