vue-laravel-csrf

This Package will allow you to include the Laravel's csrf token to the forms inside the Vue app.
1,336 1
Install
npm install vue-laravel-csrf
Latest Version:1.0.0
Vue:2
License:ISC
Last Updated:Nov 23, 2020
Links: GitHub  ·  npm
Maintainer: mohkoma

Vue Laravel CRSF

This Package will allow you to include the Laravel's csrf token to the forms inside the Vue app.

Installation

You can install this package via composer using this command:

npm install vue-laravel-csrf

Usage

First confirm that you have meta tag of the csrf in your blade file or in the head of the page. EX: <meta name="csrf-token" content="ubRt4jwLGAuv1MKmVynMyqosbcayoyMC4Gd88Epo">.

Then, just add the directive to the form tag and you're ready to go, <form v-csrf-token>.

Related Packages

@csrf-armor/core

Framework-agnostic CSRF protection core functionality

171,217 7
v-resizable

Vue directive for resizable elements

25,554 16
vue-has-error-laravel

Directive de vue.js que permite mostrar errores devueltos por laravel.

1,031 7
nuxt-bearer-auth

Reusable Nuxt authentication module for bearer-token APIs with Redis sessions an...

1,593 0
vue-svg

Vue directive that will add a svg from an svg sprite sheet to an element.

1,219 4

Version History

Version Released Vue License
1.0.0 ^2.5.13 ISC