Пример #1
0
 public function index()
 {
     if (Auth::check()) {
         $data['questions'] = Questions::all();
     } else {
         $data['questions'] = Questions::where('status', '0002')->get();
     }
     return view('questions/questionsList', $data);
 }