public function index()
 {
     $questions = Question::paginate(15);
     return view('questions.index', compact('questions'));
 }
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $questions = Question::paginate(5);
     return view('question.view', ['questions' => $questions]);
     // return view('question.view', ['questions' => Question::all()]);
 }
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     return view("ask.index", ["questions" => Question::paginate(20)]);
 }