Jeni Preigo

Jeni Preigo

  • NA
  • 2
  • 501

event calender not highlighting on date range

Oct 16 2018 6:33 AM
Laravel full calendar tutorial example using maddhatter/laravel-fullcalendar
 
it is not highlighting on date range,please give a solution
 
$events = [];
$data = AcademicCalendar::all();
if($data->count()) {
foreach ($data as $key => $value) {
$events[] = Calendar::event(
$value->event_name,
true,
new \DateTime($value->event_start_date),
new \DateTime($value->event_end_date.' +1 day'),
null,
// Add color and link on event
[
'color' => '#f05050',
'url' => 'pass here url and any route',
]
);
}
}
$calendar = Calendar::addEvents($events);
return view('students.academic_calendar', compact('calendar'))->with($this->data);