Test Setup Failed
Pull Request — master (#107)
by Tim
07:58
created

accountManagementValidator::rules()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 1
Metric Value
c 1
b 1
f 1
dl 0
loc 14
rs 9.4285
cc 1
eloc 11
nc 1
nop 0
1
<?php
2
3
namespace App\Http\Requests;
4
5
use App\Http\Requests\Request;
6
7
class accountManagementValidator extends Request
8
{
9
    /**
10
     * Determine if the user is authorized to make this request.
11
     *
12
     * @return bool
13
     */
14
    public function authorize()
15
    {
16
        return true;
17
    }
18
19
    /**
20
     * Get the validation rules that apply to the request.
21
     *
22
     * @return array
23
     */
24
    public function rules()
25
    {
26
        return [
27
            'fname'        => 'required',
28
            'name'         => 'required',
29
            'email'        => 'required|email',
30
            'address'      => 'required',
31
            'city'         => 'required',
32
            'country'      => 'required',
33
            'office_phone' => 'required',
34
            'home_phone'   => 'required',
35
            'mobile_phone' => 'required',
36
        ];
37
    }
38
}
39