data-confirm-laravel
v1.0.3
Published
Confirm dangerous clicks before submission. Submit all requests type to Laravel without forms.
Readme
data-confirm-laravel
Confirm dangerous clicks before submission. Submit all request types to Laravel without forms.
Installation
npm i data-confirm-laravel --save
In your <head> template:
<meta name="csrf-token" content="{{ csrf_token() }}">Then you must include AlertifyJS and make it available globally.
Usage
with confirmation
<a href="/delete" data-method="delete" data-confirm="Are you sure?">Delete</a>without confirmation (submit on click)
<a href="/logout" data-method="post">Logout</a>