Beispiel #1
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     // $todo_lists = TodoList::all();
     $todo_lists = TodoList::where('user_id', '=', Auth::user()->id)->get();
     return View::make('todos.index')->with('todo_lists', $todo_lists);
 }