📅  最后修改于: 2022-03-11 14:53:38.002000             🧑  作者: Mango
Use this in the head section:
and get the csrf token in ajax:
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});