出现此种错误,通常是没有提交安全验证

  params = {
        id:   2,
        _token: '{{ csrf_token() }}'
    }
    function cancel() {
        var url = "{{ route('cancelBooking') }}";
        $.post(url, params, function (result) {
            console.log(result);
        });
  }

 

相关文章:

  • 2022-12-23
  • 2021-05-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-26
  • 2022-12-23
  • 2021-12-08
猜你喜欢
  • 2021-11-14
  • 2022-12-23
  • 2022-12-23
  • 2021-10-13
相关资源
相似解决方案