maddhatter / laravel-fullcalendar

Laravel FullCalendar.io Helper
627 stars 267 forks source link

Do not use this package, directly use the plugin https://fullcalendar.io/ #156

Open devlimon opened 4 years ago

devlimon commented 4 years ago

why you are using this package for the few below lines of codes and taking the pain of package update?

include the required css and js of your specific examples.

//add here css and js files
<script>
    document.addEventListener('DOMContentLoaded', function() {
        var calendarEl = document.getElementById('calendar');//your dive id of calendar
        var calendar = new FullCalendar.Calendar(calendarEl, {
        plugins: [ 'interaction', 'dayGrid' ],
        header: {
            left: 'prevYear,prev,next,nextYear today',
            center: 'title',
            right: 'dayGridMonth,dayGridWeek,dayGridDay'
        },
        defaultDate: '{{ date('Y-m-d') }}',
        navLinks: true, // can click day/week names to navigate views
        editable: true,
        eventLimit: true, // allow "more" link when too many events
        events: @json($allDates) //put your variable of dates array with specif format of examples
        });
        calendar.render();
    });
</script>
YupItsZac commented 4 years ago

Bro, I know this is super old but I was having a hell of a time trying to get this package to work before I stumbled across this. Good looking out!