Ejemplo n.º 1
0
 /**
  * Show the application dashboard to the user.
  *
  * @return Response
  */
 public function index()
 {
     $user_id = Auth::id();
     $cats = Cat::getPet($user_id);
     // $cats = Cat::where('created_user_id', '=', $user_id);
     // return var_dump($cats);
     return view('home')->with('cats', $cats);
 }