dev-master
9999999-devLaravel helper for FullCalendar.io
MIT
The Requires
- php >=5.6.0
by Deac Karns
Wallogit.com
2017 © Pedro Peláez
Laravel helper for FullCalendar.io
, (*1)
This package is a composer installable helper for working with fullcalendar.io in a laravel app., (*3)
Event
$event = new \KO\Fullcalendar\Event(); $event->build(['id'=>'asdf', 'title' => 'test', 'start' => '20-04-2018']);
Event to an EventCollection
$events = new \KO\Fullcalendar\EventCollection(); $events->push( $event );
$options = new \KO\Fullcalendar\Options([
'header' => [
'right' => 'prev,next today',
'center' => 'title',
'left' => 'month,agendaWeek,agendaDay',
],
'eventLimit' => true,
]);
Calendar
$calendar = new \KO\Fullcalendar\Calendar(); $calendar->addEvents( $events ); $calendar->setOptions( $options );
In your blade, add the following where you would like the calendar to be drawn., (*4)
{!! $calendar->html() !!}
This package has a helper method for building the appropriate style and javascript assets from a CDN. Just add the following to your html to load the appropriate resources., (*5)
Fullcalendar css, (*6)
{!! $calendar->cdn('fullcalendar', 'css', '3.9.0') !!}
Fullcalendar js, (*7)
{!! $calendar->cdn('fullcalendar', 'js', '3.9.0') !!}
Moment js, (*8)
{!! $calendar->cdn('moment', 'js', '2.22.1') !!}
Laravel helper for FullCalendar.io
MIT