app/Http/Controllers/EventController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $events = Event::orderBy('created_at','desc')->paginate(10);
        return view('events.index',compact('events'));
    }
public function index ( ) { $ events = Event :: orderBy ( 'created_at' , 'desc' ) -> paginate ( 10 ) ; return view ( 'events.index' , compact ( 'events' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .