diff --git a/app/Http/Controllers/AppointmentController.php b/app/Http/Controllers/AppointmentController.php index ad07012..da98122 100644 --- a/app/Http/Controllers/AppointmentController.php +++ b/app/Http/Controllers/AppointmentController.php @@ -72,7 +72,7 @@ class AppointmentController extends Controller } // also updates - public function saveNotes(SaveNotesRequest $request, $application) + public function saveNotes(SaveNotesRequest $request, Application $application) { if (!is_null($application)) { diff --git a/app/Http/Controllers/VoteController.php b/app/Http/Controllers/VoteController.php index 8674dcf..eba3ae1 100644 --- a/app/Http/Controllers/VoteController.php +++ b/app/Http/Controllers/VoteController.php @@ -21,7 +21,7 @@ class VoteController extends Controller 'userID' => Auth::user()->id, 'allowedVoteType' => $voteRequest->voteType, ]); - $vote->application()->attach($applicationID); + $vote->application()->attach($application->id); Log::info('User ' . Auth::user()->name . ' has voted in applicant ' . $application->user->name . '\'s application', [ diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php index ec69b70..2b31cf0 100644 --- a/resources/views/auth/login.blade.php +++ b/resources/views/auth/login.blade.php @@ -28,7 +28,7 @@ - + {{__('messages.forgot_pw')}}