Completed
Push — master ( d483d5...082fb1 )
by Burak
02:57
created

NotificationRequest::rules()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 8
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace BRKFun\NotificationOptions\Requests;
4
5
use Illuminate\Contracts\Validation\ValidatesWhenResolved;
6
use Illuminate\Http\Request;
7
use Illuminate\Validation\ValidatesWhenResolvedTrait;
8
9
class NotificationRequest extends Request implements ValidatesWhenResolved
10
{
11
    use ValidatesWhenResolvedTrait;
12
13
    /**
14
     * Determine if the user is authorized to make this request.
15
     *
16
     * @return bool
17
     */
18
    public function authorize(): bool
19
    {
20
        return false;
21
    }
22
23
    public function rules(): array
24
    {
25
        return [
26
            'email'             => 'required|string',
27
            'token'             => 'required',
28
            'notification_name' => 'required',
29
        ];
30
    }
31
}
32