diff --git a/app/Http/Controllers/VacancyController.php b/app/Http/Controllers/VacancyController.php index 44db2c5..50c9e86 100644 --- a/app/Http/Controllers/VacancyController.php +++ b/app/Http/Controllers/VacancyController.php @@ -124,11 +124,11 @@ class VacancyController extends Controller { $this->authorize('update', $vacancy); - $position->vacancyFullDescription = $request->vacancyFullDescription; - $position->vacancyDescription = $request->vacancyDescription; - $position->vacancyCount = $request->vacancyCount; + $vacancy->vacancyFullDescription = $request->vacancyFullDescription; + $vacancy->vacancyDescription = $request->vacancyDescription; + $vacancy->vacancyCount = $request->vacancyCount; - $position->save(); + $vacancy->save(); $request->session()->flash('success', 'Vacancy successfully updated.'); return redirect()->back(); diff --git a/resources/views/dashboard/user/applications.blade.php b/resources/views/dashboard/user/applications.blade.php index 5c4cf4f..c13257f 100644 --- a/resources/views/dashboard/user/applications.blade.php +++ b/resources/views/dashboard/user/applications.blade.php @@ -130,7 +130,7 @@