Пример #1
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $user_id = \Auth::id();
     $todos = event::where('user_id', $user_id)->get();
     return $todos;
 }