Open mRamadan0101 opened 5 years ago
how to use mini cart to form to send laravel token csrf_token
<input type="hidden" name="_token" value="{{ csrf_token() }}" />
I'm looking for the same answer
I solved it! In minicart.js, I fetched the token value like this,
const token = $('input[name=_token]').val()
and gave this in template attribute within the form,
how to use mini cart to form to send laravel token csrf_token
<input type="hidden" name="_token" value="{{ csrf_token() }}" />