app/Http/Controllers/CalendarController.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()
    {
        $calendars = Calendar::select('title', 'start_at AS start', 'end_at AS end')->get();
        return view('calendar');
        $calendars = Calendar::select('title', 'start_at AS start', 'end_at AS end')->get();
        json_encode(compact('calendars')['calendars']);
        return view('calendar');
    }
public function index ( ) { return view ( 'calendar' ) ; }
Display a listing of the resource.
Display a listing of the resource .
// //$calendars = Calendar::select('title', 'start_at AS start', 'end_at AS end')->get(); //return view('calendar'); //$calendars = Calendar::select('title', 'start_at AS start', 'end_at AS end')->get(); //json_encode(compact('calendars')['calendars']);