Skip to content

Instantly share code, notes, and snippets.

View pascalschwientek's full-sized avatar

Pascal Schwientek pascalschwientek

View GitHub Profile
/**
* larail.js
*
* Perform a DELETE or PUT request outside a form with a simple link
* and some data-type attributes. For use with Laravel PHP framework.
*
* Step 1: For CSRF-Support you have to put in your <head> section:
* <meta name="csrf-token" content="{{ csrf_token() }}">
*
* Step 2: Simply build a link like this: