samedi 30 juin 2018

Laravel - Fullcalendar time issue

I have implemented fullcalendar in my laravel application. This is my Database, I have the parameters in DateTime format but still it shows events in full day instead of time specified: Month View Day View.

here is my code

public function create()
{
    $events = Booking::get();
    $event_list = [];
    foreach ($events as $key => $event) {

        $event_list[] = Calendar::event(
            // $event->resouces_id,
            "Event Name",
            true,
            new \DateTime($event->bk_date),
            new \DateTime($event->end_date.'+1 day')
        );            
    }

    $calender_details = Calendar::addEvents($event_list);


    $resources = resources::all();

    return view('Staff.Booking',compact('resources','calender_details'));
}

Where i am going wrong?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire