Total Complexity | 3 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 5 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class MailCareRequest extends FormRequest |
||
9 | { |
||
10 | public function rules() |
||
11 | { |
||
12 | return [ |
||
13 | 'content_type' => 'required|in:message/rfc2822', |
||
14 | ]; |
||
15 | } |
||
16 | |||
17 | public function prepareForValidation() |
||
18 | { |
||
19 | $this->merge([ |
||
20 | 'content_type' => $this->headers->get('Content-type'), |
||
21 | ]); |
||
22 | } |
||
23 | |||
24 | public function email() |
||
30 | } |
||
31 | } |
||
32 |