Conditions | 1 |
Paths | 1 |
Total Lines | 29 |
Code Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function validate(Request $request, Applicant $applicant) |
||
15 | { |
||
16 | $request->validate([ |
||
17 | 'degrees[:template][:id][area_of_study]' => [ |
||
18 | 'required', |
||
19 | |||
20 | ], |
||
21 | 'degrees[:template][:id][institution]' => [ |
||
22 | 'nullable', // Institution is nullable because applicant might have acquired the skills/knowledge on their own or some other way. |
||
23 | 'max:255', |
||
24 | |||
25 | ], |
||
26 | 'courses[:template][:id][name]' => [ |
||
27 | 'required', |
||
28 | ], |
||
29 | 'courses[:template][:id][institution]' => [ |
||
30 | 'required', // If someone declares a course we should require them to say where they completed this course. |
||
31 | ], |
||
32 | 'work_experiences[:template][:id][role]' => [ |
||
33 | 'required', // If they decide to fill out Equivalent Experience, a Role should be well defined, |
||
34 | |||
35 | ], |
||
36 | 'work_experiences[:template][:id][company]' => [ |
||
37 | '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. |
||
38 | |||
39 | ], |
||
40 | 'work_experiences[:template][:id][description]' => [ |
||
41 | 'required', |
||
42 | '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". |
||
43 | ] |
||
47 | } |