Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

send laravel token #310

Open
mRamadan0101 opened this issue Mar 14, 2019 · 2 comments
Open

send laravel token #310

mRamadan0101 opened this issue Mar 14, 2019 · 2 comments

Comments

@mRamadan0101
Copy link

mRamadan0101 commented Mar 14, 2019

how to use mini cart to form to send laravel token csrf_token

<input type="hidden" name="_token" value="{{ csrf_token() }}" />

@FIRDOUS-BHAT
Copy link

I'm looking for the same answer

@FIRDOUS-BHAT
Copy link

FIRDOUS-BHAT commented Jan 25, 2020

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,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants