send laravel token
Opened this issue · 2 comments
mRamadan0101 commented
how to use mini cart to form to send laravel token csrf_token
<input type="hidden" name="_token" value="{{ csrf_token() }}" />
FIRDOUS-BHAT commented
I'm looking for the same answer
FIRDOUS-BHAT commented
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,