Skip to content

Instantly share code, notes, and snippets.

@parweb
parweb / gist:d933efbf0d7334a79ef9
Last active August 29, 2015 14:20
Tag <a> with any method type for laravel
/*
* Utilisation:
*
* add this in your body tag
* <body data-token="{{ csrf_token() }}">
*
* and enjoy ( that should change the world ^^ )
*
* <a method="delete" href="{{ route( 'users.destroy', $user_id ) }}">Delete a user</a>
* <a method="put" data-items='{ "title" : {{ $mynewtitle }} }' href="{{ route( 'post.update', $post_id ) }}">change the title</a>
@parweb
parweb / designer.html
Created July 28, 2014 16:45
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-animated-pages/core-animated-pages.html">
<link rel="import" href="../core-animated-pages/transitions/hero-transition.html">
<link rel="import" href="../core-animated-pages/transitions/cross-fade.html">