app/Http/Controllers/EventsController.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::all();
         return view('events.index', compact('events'));  
    }
public function index ( ) { $ events = Event :: all ( ) ; return view ( 'events.index' , compact ( 'events' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .