/** * Display a listing of the resource. * * @return Response */ public function index() { $questions = Questions::latest('updated_at')->orderBy('id', 'desc')->get(); return view('Question.feed', compact('questions')); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $questions = Questions::latest()->get(); return view('questions.index', compact('questions')); }