/** * Display a listing of the resource. * * @return Response */ public function getAddReview($instructor_id) { $instructor = Instructor::where('Instructor_id', $instructor_id)->first(); //Loading and returning the review view return view('review', ['instructor' => $instructor]); }