public function create(CalendarRequest $request)
    {

        $calendar          = $this->repository->newInstance([]);
        $calendar['start'] = request('start');
        $calendar['end']   = request('end');

        Form::populate($calendar);

        return $this->response
            ->title(trans('app.create') . ' ' . trans('calendar::calendar.name'))
            ->data(compact('calendar'))
            ->view('calendar::calendar.create', true)
            ->output();

    }
public function create(CalendarRequest $request)
    {

        $calendar          = $this->repository->newInstance([]);
        $calendar['start'] = request('start');
        $calendar['end']   = request('end');

        Form::populate($calendar);

        return $this->response
            ->title(trans('app.create') . ' ' . trans('calendar::calendar.name'))
            ->data(compact('calendar'))
            ->view('calendar::calendar.create', true)
            ->output();

    }
public function create ( CalendarRequest $ request ) { $ calendar = $ this -> repository -> newInstance ( [ ] ) ; $ calendar [ 'start' ] = request ( 'start' ) ; $ calendar [ 'end' ] = request ( 'end' ) ; Form :: populate ( $ calendar ) ; return $ this -> response -> title ( trans ( 'app.create' ) . ' ' . trans ( 'calendar::calendar.name' ) ) -> data ( compact ( 'calendar' ) ) -> view ( 'calendar::calendar.create' , true ) -> output ( ) ; }
Show the form for creating a new calendar.

@param Request $request

@return Response
Show the form for creating a new calendar .