Skip to content

Instantly share code, notes, and snippets.

View fahrulazmi's full-sized avatar

fahrulazmi fahrulazmi

  • Cyberjaya, Selangor, Malaysia
View GitHub Profile
/**
* Taken from http://paste.laravel.com/b8n
* and added a datum attr to submit data along with the RESTful request
*
* Restfulize any hiperlink that contains a data-method attribute by
* creating a mini form with the specified method and adding a trigger
* within the link.
* Requires jQuery!
*
* Ex in Laravel: