skip to Main Content

How to read a parameter coming from the with method to the view in laravel

I have this route in web.php: Route::get('student/evaluation/{evaluation}', [EvaluationController::class, 'getEvaluationQuestions'])->middleware('auth')->name('student.questionsevaluation'); And in my controller I have this condition, where $questionWasCompleted is boolean if($questionWasCompleted){ return redirect()->route('student.questionsevaluation', $evaluation) ->with('message', 'Question answered.') ->with('question', $questionWasCompleted); } How can I get the value of $questionWasAnswered to…

VIEW QUESTION
Back To Top
Search