Total Complexity | 76 |
Total Lines | 786 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
Complex classes like ApplicationByJobController often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
While breaking up the class, it is a good idea to analyze how other classes use ApplicationByJobController, and based on these observations, apply Extract Interface, too.
1 | <?php |
||
28 | class ApplicationByJobController extends Controller |
||
29 | { |
||
30 | /** |
||
31 | * Display a listing of the applications for given jobPoster. |
||
32 | * |
||
33 | * @param \App\Models\JobPoster $jobPoster Incoming JobPoster object. |
||
34 | * @return \Illuminate\Http\Response |
||
35 | */ |
||
36 | public function index(JobPoster $jobPoster) |
||
37 | { |
||
38 | $applications = $jobPoster->submitted_applications() |
||
39 | ->with([ |
||
40 | 'veteran_status', |
||
41 | 'citizenship_declaration', |
||
42 | 'application_review', |
||
43 | 'applicant.user', |
||
44 | 'job_poster.criteria', |
||
45 | ]) |
||
46 | ->get(); |
||
47 | return view('manager/review_applications', [ |
||
|
|||
48 | // Localization Strings. |
||
49 | 'jobs_l10n' => Lang::get('manager/job_index'), |
||
50 | // Data. |
||
51 | 'job' => new JsonResource($jobPoster), |
||
52 | 'is_hr_portal' => WhichPortal::isHrPortal(), |
||
53 | 'applications' => $applications, |
||
54 | 'review_statuses' => ReviewStatus::all() |
||
55 | ]); |
||
56 | } |
||
57 | |||
58 | /** |
||
59 | * Return the current applicant's application for a given Job Poster. |
||
60 | * |
||
61 | * @param \App\Models\JobPoster $jobPoster Incoming JobPoster object. |
||
62 | * @return mixed|\App\Models\JobApplication |
||
63 | */ |
||
64 | protected function getApplicationFromJob(JobPoster $jobPoster) |
||
65 | { |
||
66 | $application = JobApplication::where('applicant_id', Auth::user()->applicant->id) |
||
67 | ->where('job_poster_id', $jobPoster->id)->first(); |
||
68 | if ($application == null) { |
||
69 | $application = new JobApplication(); |
||
70 | $application->job_poster_id = $jobPoster->id; |
||
71 | $application->applicant_id = Auth::user()->applicant->id; |
||
72 | $application->application_status_id = ApplicationStatus::where('name', 'draft')->firstOrFail()->id; |
||
73 | $application->save(); |
||
74 | } |
||
75 | return $application; |
||
76 | } |
||
77 | |||
78 | /** |
||
79 | * Show the form for editing Application basics for the specified job. |
||
80 | * |
||
81 | * @param \App\Models\JobPoster $jobPoster Incoming Job Poster object. |
||
82 | * @return \Illuminate\Http\Response |
||
83 | */ |
||
84 | public function editBasics(JobPoster $jobPoster) |
||
85 | { |
||
86 | $applicant = Auth::user()->applicant; |
||
87 | $application = $this->getApplicationFromJob($jobPoster); |
||
88 | |||
89 | // Ensure user has permissions to view and update application. |
||
90 | $this->authorize('view', $application); |
||
91 | $this->authorize('update', $application); |
||
92 | |||
93 | return view( |
||
94 | 'applicant/application_post_01', |
||
95 | [ |
||
96 | // Application Template Data. |
||
97 | 'application_step' => 1, |
||
98 | 'application_template' => Lang::get('applicant/application_template'), |
||
99 | 'language_options' => PreferredLanguage::all(), |
||
100 | 'citizenship_options' => CitizenshipDeclaration::all(), |
||
101 | 'veteran_options' => VeteranStatus::all(), |
||
102 | 'preferred_language_template' => Lang::get('common/preferred_language'), |
||
103 | 'citizenship_declaration_template' => Lang::get('common/citizenship_declaration'), |
||
104 | 'veteran_status_template' => Lang::get('common/veteran_status'), |
||
105 | // Job Data. |
||
106 | 'job' => $jobPoster, |
||
107 | // Applicant Data. |
||
108 | 'applicant' => $applicant, |
||
109 | 'job_application' => $application, |
||
110 | // Submission. |
||
111 | 'form_submit_action' => route('job.application.update.1', $jobPoster) |
||
112 | ] |
||
113 | ); |
||
114 | } |
||
115 | |||
116 | /** |
||
117 | * Show the form for editing Application Experience for the specified job. |
||
118 | * |
||
119 | * @param \App\Models\JobPoster $jobPoster Incoming Job Poster object. |
||
120 | * @return \Illuminate\Http\Response |
||
121 | */ |
||
122 | public function editExperience(JobPoster $jobPoster) |
||
123 | { |
||
124 | $applicant = Auth::user()->applicant; |
||
125 | $application = $this->getApplicationFromJob($jobPoster); |
||
126 | |||
127 | // Ensure user has permissions to view and update application. |
||
128 | $this->authorize('view', $application); |
||
129 | $this->authorize('update', $application); |
||
130 | |||
131 | return view( |
||
132 | 'applicant/application_post_02', |
||
133 | [ |
||
134 | // Application Template Data. |
||
135 | 'application_step' => 2, |
||
136 | 'application_template' => Lang::get('applicant/application_template'), |
||
137 | // Job Data. |
||
138 | 'job' => $jobPoster, |
||
139 | // Applicant Data. |
||
140 | 'applicant' => $applicant, |
||
141 | 'job_application' => $application, |
||
142 | // Submission. |
||
143 | 'form_submit_action' => route('job.application.update.2', $jobPoster) |
||
144 | ] |
||
145 | ); |
||
146 | } |
||
147 | |||
148 | /** |
||
149 | * Show the form for editing Application Essential Skills for the specified job. |
||
150 | * |
||
151 | * @param \App\Models\JobPoster $jobPoster Incoming Job Poster object. |
||
152 | * @return \Illuminate\Http\Response |
||
153 | */ |
||
154 | public function editEssentialSkills(JobPoster $jobPoster) |
||
155 | { |
||
156 | $applicant = Auth::user()->applicant; |
||
157 | $application = $this->getApplicationFromJob($jobPoster); |
||
158 | |||
159 | // Ensure user has permissions to view and update application. |
||
160 | $this->authorize('view', $application); |
||
161 | $this->authorize('update', $application); |
||
162 | |||
163 | $criteria = [ |
||
164 | 'essential' => $jobPoster->criteria->filter(function ($value, $key) { |
||
165 | return $value->criteria_type->name == 'essential'; |
||
166 | }), |
||
167 | 'asset' => $jobPoster->criteria->filter(function ($value, $key) { |
||
168 | return $value->criteria_type->name == 'asset'; |
||
169 | }), |
||
170 | ]; |
||
171 | |||
172 | return view( |
||
173 | 'applicant/application_post_03', |
||
174 | [ |
||
175 | // Application Template Data. |
||
176 | 'application_step' => 3, |
||
177 | 'application_template' => Lang::get('applicant/application_template'), |
||
178 | // Job Data. |
||
179 | 'job' => $jobPoster, |
||
180 | // Skills Data. |
||
181 | 'skills' => Skill::all(), |
||
182 | 'skill_template' => Lang::get('common/skills'), |
||
183 | 'criteria' => $criteria, |
||
184 | // Applicant Data. |
||
185 | 'applicant' => $applicant, |
||
186 | 'job_application' => $application, |
||
187 | // Submission. |
||
188 | 'form_submit_action' => route('job.application.update.3', $jobPoster) |
||
189 | ] |
||
190 | ); |
||
191 | } |
||
192 | |||
193 | /** |
||
194 | * Show the form for editing Application Asset Skills for the specified job. |
||
195 | * |
||
196 | * @param \App\Models\JobPoster $jobPoster Incoming Job Poster object. |
||
197 | * @return \Illuminate\Http\Response |
||
198 | */ |
||
199 | public function editAssetSkills(JobPoster $jobPoster) |
||
200 | { |
||
201 | $applicant = Auth::user()->applicant; |
||
202 | $application = $this->getApplicationFromJob($jobPoster); |
||
203 | |||
204 | // Ensure user has permissions to view and update application. |
||
205 | $this->authorize('view', $application); |
||
206 | $this->authorize('update', $application); |
||
207 | |||
208 | $criteria = [ |
||
209 | 'essential' => $jobPoster->criteria->filter(function ($value, $key) { |
||
210 | return $value->criteria_type->name == 'essential'; |
||
211 | }), |
||
212 | 'asset' => $jobPoster->criteria->filter(function ($value, $key) { |
||
213 | return $value->criteria_type->name == 'asset'; |
||
214 | }), |
||
215 | ]; |
||
216 | |||
217 | return view( |
||
218 | 'applicant/application_post_04', |
||
219 | [ |
||
220 | // Application Template Data. |
||
221 | 'application_step' => 4, |
||
222 | 'application_template' => Lang::get('applicant/application_template'), |
||
223 | // Job Data. |
||
224 | 'job' => $jobPoster, |
||
225 | // Skills Data. |
||
226 | 'skills' => Skill::all(), |
||
227 | 'skill_template' => Lang::get('common/skills'), |
||
228 | 'criteria' => $criteria, |
||
229 | // Applicant Data. |
||
230 | 'applicant' => $applicant, |
||
231 | 'job_application' => $application, |
||
232 | // Submission. |
||
233 | 'form_submit_action' => route('job.application.update.4', $jobPoster) |
||
234 | ] |
||
235 | ); |
||
236 | } |
||
237 | |||
238 | /** |
||
239 | * Show the Application Preview for the application for the specified job. |
||
240 | * |
||
241 | * @param \App\Models\JobPoster $jobPoster Incoming Job Poster object. |
||
242 | * @return \Illuminate\Http\Response |
||
243 | */ |
||
244 | public function preview(JobPoster $jobPoster) |
||
245 | { |
||
246 | $applicant = Auth::user()->applicant; |
||
247 | $application = $this->getApplicationFromJob($jobPoster); |
||
248 | |||
249 | $this->authorize('view', $application); |
||
250 | $criteria = [ |
||
251 | 'essential' => $jobPoster->criteria->filter(function ($value, $key) { |
||
252 | return $value->criteria_type->name == 'essential'; |
||
253 | }), |
||
254 | 'asset' => $jobPoster->criteria->filter(function ($value, $key) { |
||
255 | return $value->criteria_type->name == 'asset'; |
||
256 | }), |
||
257 | ]; |
||
258 | $skillDeclarations = $application->isDraft() |
||
259 | ? $applicant->skill_declarations |
||
260 | : $application->skill_declarations; |
||
261 | $degrees = $application->isDraft() |
||
262 | ? $applicant->degrees |
||
263 | : $application->degrees; |
||
264 | $courses = $application->isDraft() |
||
265 | ? $applicant->courses |
||
266 | : $application->courses; |
||
267 | $work_experiences = $application->isDraft() |
||
268 | ? $applicant->work_experiences |
||
269 | : $application->work_experiences; |
||
270 | |||
271 | return view( |
||
272 | 'applicant/application_post_05', |
||
273 | [ |
||
274 | // Application Template Data. |
||
275 | 'application_step' => 5, |
||
276 | 'application_template' => Lang::get('applicant/application_template'), |
||
277 | 'preferred_language_template' => Lang::get('common/preferred_language'), |
||
278 | 'citizenship_declaration_template' => Lang::get('common/citizenship_declaration'), |
||
279 | 'veteran_status_template' => Lang::get('common/veteran_status'), |
||
280 | // Job Data. |
||
281 | 'job' => $jobPoster, |
||
282 | // Skills Data. |
||
283 | 'skills' => Skill::all(), |
||
284 | 'skill_template' => Lang::get('common/skills'), |
||
285 | 'criteria' => $criteria, |
||
286 | // Applicant Data. |
||
287 | 'applicant' => $applicant, |
||
288 | 'job_application' => $application, |
||
289 | 'skill_declarations' => $skillDeclarations, |
||
290 | 'degrees' => $degrees, |
||
291 | 'courses' => $courses, |
||
292 | 'work_experiences' => $work_experiences, |
||
293 | 'is_manager_view' => WhichPortal::isManagerPortal(), |
||
294 | ] |
||
295 | ); |
||
296 | } |
||
297 | |||
298 | /** |
||
299 | * Show the Confirm Submit page for the application for the specified job. |
||
300 | * |
||
301 | * @param \App\Models\JobPoster $jobPoster Incoming Job Poster object. |
||
302 | * @return \Illuminate\Http\Response |
||
303 | */ |
||
304 | public function confirm(JobPoster $jobPoster) |
||
305 | { |
||
306 | $applicant = Auth::user()->applicant; |
||
307 | $application = $this->getApplicationFromJob($jobPoster); |
||
308 | |||
309 | $this->authorize('update', $application); |
||
310 | |||
311 | return view( |
||
312 | 'applicant/application_post_06', |
||
313 | [ |
||
314 | // Application Template Data. |
||
315 | 'application_step' => 6, |
||
316 | 'application_template' => Lang::get('applicant/application_template'), |
||
317 | // Used by tracker partial. |
||
318 | 'job' => $jobPoster, |
||
319 | 'job_application' => $application, |
||
320 | // Submission. |
||
321 | 'form_submit_action' => route('job.application.submit', $jobPoster) |
||
322 | ] |
||
323 | ); |
||
324 | } |
||
325 | |||
326 | /** |
||
327 | * Show the application submission information. |
||
328 | * |
||
329 | * @param \App\Models\JobPoster $jobPoster Incoming Job Poster object. |
||
330 | * @return \Illuminate\Http\Response |
||
331 | */ |
||
332 | public function complete(JobPoster $jobPoster) |
||
353 | ] |
||
354 | ); |
||
355 | } |
||
356 | |||
357 | /** |
||
358 | * Update the Application Basics in storage for the specified job. |
||
359 | * |
||
360 | * @param \Illuminate\Http\Request $request Incoming Request object. |
||
361 | * @param \App\Models\JobPoster $jobPoster Incoming Job Poster object. |
||
362 | * @return \Illuminate\Http\Response |
||
363 | */ |
||
364 | public function updateBasics(Request $request, JobPoster $jobPoster) |
||
365 | { |
||
366 | $applicant = Auth::user()->applicant; |
||
367 | $application = $this->getApplicationFromJob($jobPoster); |
||
368 | |||
369 | // Ensure user has permissions to update this application. |
||
370 | $this->authorize('update', $application); |
||
371 | |||
372 | $application->fill([ |
||
373 | 'citizenship_declaration_id' => $request->input('citizenship_declaration_id'), |
||
374 | 'veteran_status_id' => $request->input('veteran_status_id'), |
||
375 | 'preferred_language_id' => $request->input('preferred_language_id'), |
||
376 | 'language_requirement_confirmed' => $request->input('language_requirement_confirmed') |
||
377 | ]); |
||
378 | $application->save(); |
||
379 | |||
380 | $questions = $jobPoster->job_poster_questions; |
||
381 | $questionsInput = $request->input('questions'); |
||
382 | foreach ($questions as $question) { |
||
383 | $answer = null; |
||
384 | if (isset($questionsInput[$question->id])) { |
||
385 | $answer = $questionsInput[$question->id]; |
||
386 | } |
||
387 | $answerObj = $application->job_application_answers |
||
388 | ->firstWhere('job_poster_question_id', $question->id); |
||
389 | if ($answerObj == null) { |
||
390 | $answerObj = new JobApplicationAnswer(); |
||
391 | $answerObj->job_poster_question_id = $question->id; |
||
392 | $answerObj->job_application_id = $application->id; |
||
393 | } |
||
394 | $answerObj->answer = $answer; |
||
395 | $answerObj->save(); |
||
396 | } |
||
397 | |||
398 | // Redirect to correct page. |
||
399 | switch ($request->input('submit')) { |
||
400 | case 'save_and_quit': |
||
401 | case 'previous': |
||
402 | return redirect()->route('applications.index'); |
||
403 | break; |
||
404 | case 'save_and_continue': |
||
405 | case 'next': |
||
406 | return redirect()->route('job.application.edit.2', $jobPoster); |
||
407 | break; |
||
408 | default: |
||
409 | return redirect()->back()->withInput(); |
||
410 | } |
||
411 | } |
||
412 | |||
413 | /** |
||
414 | * Update the Application Basics in storage for the specified job. |
||
415 | * |
||
416 | * @param \Illuminate\Http\Request $request Incoming Request object. |
||
417 | * @param \App\Models\JobPoster $jobPoster Incoming Job Poster object. |
||
418 | * @return \Illuminate\Http\Response |
||
419 | */ |
||
420 | public function updateExperience(Request $request, JobPoster $jobPoster) |
||
421 | { |
||
422 | $applicant = Auth::user()->applicant; |
||
423 | $application = $this->getApplicationFromJob($jobPoster); |
||
424 | |||
425 | // Ensure user has permissions to update this application. |
||
426 | $this->authorize('update', $application); |
||
427 | |||
428 | // Record that the user has saved their experience for this application. |
||
429 | $application->experience_saved = true; |
||
430 | $application->save(); |
||
431 | |||
432 | $degrees = $request->input('degrees'); |
||
433 | |||
434 | $request->validate([ |
||
435 | 'degrees.new.*.degree_type_id' => 'required', |
||
436 | 'degrees.new.*.area_of_study' => 'required', |
||
437 | 'degrees.new.*.institution' => 'required', |
||
438 | 'degrees.new.*.thesis' => 'nullable', |
||
439 | 'degrees.new.*.start_date' => 'required|date', |
||
440 | 'degrees.new.*.end_date' => 'required|date', |
||
441 | 'degrees.new.*.blockcert_url' => 'nullable|string', |
||
442 | ]); |
||
443 | |||
444 | // Save new degrees. |
||
445 | if (isset($degrees['new'])) { |
||
446 | foreach ($degrees['new'] as $degreeInput) { |
||
447 | $degree = new Degree(); |
||
448 | $degree->fill([ |
||
449 | 'degree_type_id' => $degreeInput['degree_type_id'], |
||
450 | 'area_of_study' => $degreeInput['area_of_study'], |
||
451 | 'institution' => $degreeInput['institution'], |
||
452 | 'thesis' => $degreeInput['thesis'], |
||
453 | 'start_date' => $degreeInput['start_date'], |
||
454 | 'end_date' => $degreeInput['end_date'], |
||
455 | 'blockcert_url' => $degreeInput['blockcert_url'], |
||
456 | ]); |
||
457 | $applicant->degrees()->save($degree); |
||
458 | } |
||
459 | } |
||
460 | |||
461 | // Update old degrees. |
||
462 | if (isset($degrees['old'])) { |
||
463 | foreach ($degrees['old'] as $id => $degreeInput) { |
||
464 | // Ensure this degree belongs to this applicant. |
||
465 | $degree = $applicant->degrees->firstWhere('id', $id); |
||
466 | if ($degree != null) { |
||
467 | $degree->fill([ |
||
468 | 'degree_type_id' => $degreeInput['degree_type_id'], |
||
469 | 'area_of_study' => $degreeInput['area_of_study'], |
||
470 | 'institution' => $degreeInput['institution'], |
||
471 | 'thesis' => $degreeInput['thesis'], |
||
472 | 'start_date' => $degreeInput['start_date'], |
||
473 | 'end_date' => $degreeInput['end_date'], |
||
474 | 'blockcert_url' => $degreeInput['blockcert_url'], |
||
475 | ]); |
||
476 | $degree->save(); |
||
477 | } else { |
||
478 | Log::warning("Applicant $applicant->id attempted to update degree with invalid id: $id"); |
||
479 | } |
||
480 | } |
||
481 | } |
||
482 | |||
483 | $courses = $request->input('courses'); |
||
484 | |||
485 | $request->validate([ |
||
486 | 'courses.new.*.name' => 'required', |
||
487 | 'courses.new.*.institution' => 'required', |
||
488 | 'courses.new.*.course_status_id' => 'required', |
||
489 | 'courses.new.*.start_date' => 'required|date', |
||
490 | 'courses.new.*.end_date' => 'required|date', |
||
491 | ]); |
||
492 | |||
493 | // Save new courses. |
||
494 | if (isset($courses['new'])) { |
||
495 | foreach ($courses['new'] as $courseInput) { |
||
496 | $course = new Course(); |
||
497 | $course->fill([ |
||
498 | 'name' => $courseInput['name'], |
||
499 | 'institution' => $courseInput['institution'], |
||
500 | 'course_status_id' => $courseInput['course_status_id'], |
||
501 | 'start_date' => $courseInput['start_date'], |
||
502 | 'end_date' => $courseInput['end_date'] |
||
503 | ]); |
||
504 | $applicant->courses()->save($course); |
||
505 | } |
||
506 | } |
||
507 | |||
508 | // Update old courses. |
||
509 | if (isset($courses['old'])) { |
||
510 | foreach ($courses['old'] as $id => $courseInput) { |
||
511 | // Ensure this course belongs to this applicant. |
||
512 | $course = $applicant->courses->firstWhere('id', $id); |
||
513 | if ($course != null) { |
||
514 | $course->fill([ |
||
515 | 'name' => $courseInput['name'], |
||
516 | 'institution' => $courseInput['institution'], |
||
517 | 'course_status_id' => $courseInput['course_status_id'], |
||
518 | 'start_date' => $courseInput['start_date'], |
||
519 | 'end_date' => $courseInput['end_date'] |
||
520 | ]); |
||
521 | $course->save(); |
||
522 | } else { |
||
523 | Log::warning("Applicant $applicant->id attempted to update course with invalid id: $id"); |
||
524 | } |
||
525 | } |
||
526 | } |
||
527 | |||
528 | $work_experiences = $request->input('work_experiences'); |
||
529 | |||
530 | $request->validate([ |
||
531 | 'work_experiences.new.*.role' => 'required', |
||
532 | 'work_experiences.new.*.company' => 'required', |
||
533 | 'work_experiences.new.*.description' => 'required', |
||
534 | 'work_experiences.new.*.start_date' => 'required|date', |
||
535 | 'work_experiences.new.*.end_date' => 'required|date', |
||
536 | ]); |
||
537 | |||
538 | // Save new work_experiences. |
||
539 | if (isset($work_experiences['new'])) { |
||
540 | foreach ($work_experiences['new'] as $workExperienceInput) { |
||
541 | $workExperience = new WorkExperience(); |
||
542 | $workExperience->fill([ |
||
543 | 'role' => $workExperienceInput['role'], |
||
544 | 'company' => $workExperienceInput['company'], |
||
545 | 'description' => $workExperienceInput['description'], |
||
546 | 'start_date' => $workExperienceInput['start_date'], |
||
547 | 'end_date' => $workExperienceInput['end_date'] |
||
548 | ]); |
||
549 | $applicant->work_experiences()->save($workExperience); |
||
550 | } |
||
551 | } |
||
552 | |||
553 | // Update old work_experiences. |
||
554 | if (isset($work_experiences['old'])) { |
||
555 | foreach ($work_experiences['old'] as $id => $workExperienceInput) { |
||
556 | // Ensure this work_experience belongs to this applicant. |
||
557 | $workExperience = $applicant->work_experiences->firstWhere('id', $id); |
||
558 | if ($workExperience != null) { |
||
559 | $workExperience->fill([ |
||
560 | 'role' => $workExperienceInput['role'], |
||
561 | 'company' => $workExperienceInput['company'], |
||
562 | 'description' => $workExperienceInput['description'], |
||
563 | 'start_date' => $workExperienceInput['start_date'], |
||
564 | 'end_date' => $workExperienceInput['end_date'] |
||
565 | ]); |
||
566 | $workExperience->save(); |
||
567 | } else { |
||
568 | Log::warning("Applicant $applicant->id attempted to update work_experience with invalid id: $id"); |
||
569 | } |
||
570 | } |
||
571 | } |
||
572 | |||
573 | // Redirect to correct page. |
||
574 | switch ($request->input('submit')) { |
||
575 | case 'save_and_quit': |
||
576 | return redirect()->route('applications.index'); |
||
577 | break; |
||
578 | case 'save_and_continue': |
||
579 | case 'next': |
||
580 | return redirect()->route('job.application.edit.3', $jobPoster); |
||
581 | break; |
||
582 | case 'previous': |
||
583 | return redirect()->route('job.application.edit.1', $jobPoster); |
||
584 | break; |
||
585 | default: |
||
586 | return redirect()->back()->withInput(); |
||
587 | } |
||
588 | } |
||
589 | |||
590 | /** |
||
591 | * Update the Application Essential Skills in storage for the specified job. |
||
592 | * |
||
593 | * @param \Illuminate\Http\Request $request Incoming Request object. |
||
594 | * @param \App\Models\JobPoster $jobPoster Incoming Job Poster object. |
||
595 | * @return \Illuminate\Http\Response |
||
596 | */ |
||
597 | public function updateEssentialSkills(Request $request, JobPoster $jobPoster) |
||
670 | } |
||
671 | } |
||
672 | |||
673 | /** |
||
674 | * Update the Application Asset Skills in storage for the specified job. |
||
675 | * |
||
676 | * @param \Illuminate\Http\Request $request Incoming Request object. |
||
677 | * @param \App\Models\JobPoster $jobPoster Incoming Job Poster object. |
||
678 | * @return \Illuminate\Http\Response |
||
679 | */ |
||
680 | public function updateAssetSkills(Request $request, JobPoster $jobPoster) |
||
753 | } |
||
754 | } |
||
755 | |||
756 | /** |
||
757 | * Submit the Application for the specified job. |
||
758 | * |
||
759 | * @param \Illuminate\Http\Request $request Incoming Request object. |
||
760 | * @param \App\Models\JobPoster $jobPoster Incoming Job Poster object. |
||
761 | * @return \Illuminate\Http\Response |
||
762 | */ |
||
763 | public function submit(Request $request, JobPoster $jobPoster) |
||
817 |