Hello,
When modifying an event it sends a post, but under laravel you have to send a token...
How to add the token to the post?
I tried this but it doesn't work:
var scheduleObj = new ej.schedule.Schedule({
height: '550px',
//locale: 'fr',
timezone: 'UTC',
//selectedDate: new Date(2021, 0, 10),
eventSettings: { dataSource: data2 },
beforeAjaxRequest: "beforeAjaxRequest",
dragStart: function (args) {
args.navigation.enable = true;
}
});
scheduleObj.appendTo('#Schedule');
function beforeAjaxRequest(xhr) {
xhr.setRequestHeader('X-CSRF-TOKEN', $('meta[name="csrf-token"]').attr('content'));
}