function deleteQuestion(Request $request, Question $question) { // Double check to make sure the current user is authorized to do this... $this->authorize('delete-question'); $question->delete(); $request->session()->flash('success', 'The question has been deleted.'); return redirect('/questions'); }
public function destroy(Quiz $quiz, Question $question) { $question->delete(); }
/** * Remove the specified resource from storage. * * @param Question $questions * @throws \Exception * @return Response */ public function destroy(Question $questions) { $questions->delete(); return redirect()->route('admin.questions.index'); }
/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy(Question $Question) { $Question->delete(); return redirect()->back(); }