📅  最后修改于: 2022-03-11 15:00:40.198000             🧑  作者: 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')
}
});