Completed
Push — master ( a0952d...ccfee5 )
by Quim González
04:47
created

SendEmail::authorize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
namespace App\Http\Requests;
3
use Illuminate\Foundation\Http\FormRequest;
4
/**
5
 * Class SendEmail.
6
 */
7
class SendEmail extends FormRequest
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
     * Get the validation rules that apply to the request.
20
     *
21
     * @return array
22
     */
23
    public function rules()
24
    {
25
        return [
26
            'emailto' => 'required|email|max:255',
27
            'subject' => 'required',
28
            'body'    => 'required',
29
        ];
30
    }
31
}
32