/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { return view('admin.events.index', ['events' => Event::all()]); }
public function events() { return view('home.events.index', ['events' => Event::all()->sortByDesc('created_at')]); }