Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
14 | public function validate(Request $request, Applicant $applicant) |
||
15 | { |
||
16 | $request->validate([ |
||
17 | 'work_experiences[:template][:id][role]' => [ |
||
18 | 'required', // If they decide to fill out Equivalent Experience, a Role should be well defined, |
||
19 | |||
20 | ], |
||
21 | 'work_experiences[:template][:id][company]' => [ |
||
22 | 'nullable', // Not every role belongs to a Company or Group. Someone could be a Hobbyist and as such might be hesistant to put something else down here. So nullable. |
||
23 | |||
24 | ], |
||
25 | 'work_experiences[:template][:id][description]' => [ |
||
26 | 'required', |
||
27 | 'min:2500' // Hiring managers will probably like atleast a paragraph's worth of information here. Since you tend to have to back up Equivalent Experience more often than other forms of "Experience". |
||
28 | ] |
||
32 | } |