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 ExperienceController extends Controller |
||||
11 | { |
||||
12 | /** |
||||
13 | * Show the form for editing the logged-in applicant's experience |
||||
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.experience.edit', $applicant)); |
||||
0 ignored issues
–
show
Bug
introduced
by
![]() 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
![]() |
|||||
22 | } |
||||
23 | |||||
24 | /** |
||||
25 | * Show the form for editing the applicant's experience |
||||
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
![]() |
|||||
35 | 'profile' => '', |
||||
36 | ]; |
||||
37 | |||||
38 | return view('applicant/profile_02_experience', [ |
||||
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
![]() |
|||||
39 | 'applicant' => $applicant, |
||||
40 | 'profile' => Lang::get('applicant/profile_experience'), |
||||
41 | 'custom_breadcrumbs' => $custom_breadcrumbs, |
||||
42 | 'disable_clone_js' => true, |
||||
43 | ]); |
||||
44 | } |
||||
45 | } |
||||
46 |