Can anyone help me please as I am tearing my hair out. Up until now playing with the webix tools has been a joy to use and very simple. I now have my datatable loading data externally from PHP and its bound to a form. Now I am trying to implement the PHP side to facilitate the insert, update and delete methods.
I am using Laravel and I really need to be able to send a CSRF_TOKEN along with every POST that webix makes.
Please, can anybody help?
EDIT: I have since done this and it works. Is there a more elegant solution or is this okay?
In the datatable on events I put this…
onSelectChange:function(){
var item = this.getItem(this.getSelectedId());
item._token = “{{csrf_token()}}”;
this.updateItem(this.getSelectedId());
}