public function index() { $this->data['items'] = Event::orderBy('created_at', 'desc')->get(); $this->data['pivots'] = Pivot::get(); return view('pages.event.index', $this->data); }