GCTC-NTGC /
TalentCloud
| 1 | <?php |
||||
| 2 | |||||
| 3 | namespace App\Http\Controllers; |
||||
| 4 | |||||
| 5 | use Illuminate\Http\Request; |
||||
| 6 | use App\Models\Applicant; |
||||
| 7 | use App\Http\Controllers\Controller; |
||||
| 8 | use Illuminate\Support\Facades\Lang; |
||||
| 9 | |||||
| 10 | class ApplicantSkillsController extends Controller |
||||
| 11 | { |
||||
| 12 | /** |
||||
| 13 | * Redirect to the logged-in user's Skills page. |
||||
| 14 | * |
||||
| 15 | * @param \Illuminate\Http\Request $request Incoming Request. |
||||
| 16 | * @return \Illuminate\Http\Response |
||||
| 17 | */ |
||||
| 18 | public function editAuthenticated(Request $request) |
||||
| 19 | { |
||||
| 20 | $applicant = $request->user()->applicant; |
||||
| 21 | return redirect(route('profile.skills.edit', $applicant)); |
||||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
The function
route was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
| 22 | } |
||||
| 23 | |||||
| 24 | /** |
||||
| 25 | * Show the applicant's Skills page. |
||||
| 26 | * |
||||
| 27 | * @param \Illuminate\Http\Request $request Incoming request object. |
||||
| 28 | * @param \App\Models\Applicant $applicant Incoming applicant object. |
||||
| 29 | * @return \Illuminate\Http\Response |
||||
| 30 | */ |
||||
| 31 | public function edit(Request $request, Applicant $applicant) |
||||
| 32 | { |
||||
| 33 | $custom_breadcrumbs = [ |
||||
| 34 | 'home' => route('home'), |
||||
|
0 ignored issues
–
show
The function
route was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
| 35 | 'profile' => '', |
||||
| 36 | ]; |
||||
| 37 | |||||
| 38 | return view('applicant/profile_skills', [ |
||||
|
0 ignored issues
–
show
The function
view was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
| 39 | 'applicant' => $applicant, |
||||
| 40 | 'profile' => Lang::get('applicant/profile_skills'), |
||||
| 41 | 'custom_breadcrumbs' => $custom_breadcrumbs, |
||||
| 42 | 'disable_clone_js' => true, |
||||
| 43 | ]); |
||||
| 44 | } |
||||
| 45 | } |
||||
| 46 |