1.0.3 • Published 4 years ago

data-confirm-laravel v1.0.3

Weekly downloads
7
License
MIT
Repository
github
Last release
4 years ago

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>

Credits

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago