/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $entries = Entry::get(); return view('entry.index', compact('entries')); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $entry = Entry::get(); //return $entry; return view('eventos', compact($entry)); }