/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // $v = '<pre>'.print_r($cats, true).'</pre>'; // $cat = new \Furbook\Cat(); //return 'index'.$v; // todos $cats = Cat::all(); return view('cat.index')->with('cats', $cats); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $cats = Cat::all(); return view('cats.index')->with('cats', $cats); }