| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | public function validate(Request $request, Applicant $applicant) |
||
| 12 | { |
||
| 13 | $request->validate([ |
||
| 14 | 'references[:template][:id][name]' => [ |
||
| 15 | 'required', // Name of Reference shoud be required. |
||
| 16 | ], |
||
| 17 | 'references[:template][:id][relationship_id]' => [ |
||
| 18 | 'required', // Your Relationship should be required. |
||
| 19 | ], |
||
| 20 | 'references[:template][:id][email]' => [ |
||
| 21 | 'email:required', // Maybe don't make email required incase applicant only has another form of contact info for this reference (Like phone number?) Potentially open this up for more forms of contacting the reference. |
||
| 22 | ], |
||
| 23 | 'references[:template][:id][description]' => [ |
||
| 24 | 'nullable', |
||
| 25 | 'string', |
||
| 26 | 'max:4000' // Allows the applicant to be descriptive with a rather generous paragraph but not so descriptive that the hiring manager will have to contend with a page of text. |
||
| 27 | ] |
||
| 32 | } |