laravel-fullcalendar
laravel-fullcalendar copied to clipboard
changing single event color
can i edit the color of the event not all calendar events ???
Yes, you need to send the background color in the 6 parameter, inside the array, like this:
$event = \Calendar::event(
$my_event -> title, //Event title
$my_event -> all_day, //Full day event
$my_event -> start, //Start time
$my_event -> end, //End time
$my_event -> id, //Event ID
[
'backgroundColor' => $back_color,
'textColor' => $text_color,
'description' => $my_event -> message
]
);