minicart
minicart copied to clipboard
How to pass laravel CSRF token in it?
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,