jeffharrell / minicart

The minicart is a great way to improve your PayPal shopping cart integration.
MIT License
501 stars 211 forks source link

How to pass laravel CSRF token in it? #312

Open FIRDOUS-BHAT opened 4 years ago

FIRDOUS-BHAT commented 4 years ago

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,