Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

add csrf token in vuejs

<!-- In blade: -->
<Example-component csrf="{{csrf_token()}}"></Example-component>

<!-- In form: -->
<input type="hidden" name="_token" v-bind:value="csrf">

<!-- In script: -->
export default {
	props: ['csrf'],
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #csrf #token #vuejs
ADD COMMENT
Topic
Name
9+6 =