CreateAddressRequest::rules()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace PWWEB\Localisation\Requests;
4
5
use Illuminate\Foundation\Http\FormRequest;
6
use PWWEB\Localisation\Models\Address;
7
8
/**
9
 * PWWEB\Localisation\Requests\CreateAddressRequest CreateAddressRequest.
10
 *
11
 * The create request class for the Address
12
 * Class CreateAddressRequest
13
 *
14
 * @author    Frank Pillukeit <[email protected]>
15
 * @author    Richard Browne <[email protected]
16
 * @copyright 2020 pw-websolutions.com
17
 * @license   http://www.opensource.org/licenses/mit-license.html  MIT License
18
 */
19
class CreateAddressRequest extends FormRequest
20
{
21
    /**
22
     * Determine if the user is authorized to make this request.
23
     *
24
     * @return bool
25
     */
26
    public function authorize()
27
    {
28
        return true;
29
    }
30
31
    /**
32
     * Get the validation rules that apply to the request.
33
     *
34
     * @return array
35
     */
36
    public function rules()
37
    {
38
        return Address::$rules;
39
    }
40
}
41