Skip to content

Instantly share code, notes, and snippets.

@Ellrion
Created April 4, 2017 14:38
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save Ellrion/8b269c6f4d49c49582c97bb01e9c5359 to your computer and use it in GitHub Desktop.
Save Ellrion/8b269c6f4d49c49582c97bb01e9c5359 to your computer and use it in GitHub Desktop.
Verb URI Action Route Name View Policy Middleware
GET /resources index resources.index resources.list list can:list,Resource::class
GET /resources/create create resources.create resources.create create can:create,Resource::class
POST /resources store resources.store create can:create,Resource::class
GET /resources/{resource} show resources.show resources.show view can:view,resource
GET /resources/{resource}/edit edit resources.edit resources.edit update can:update,resource
PUT/PATCH /resources/{resource} update resources.update update can:update,resource
DELETE /resources/{resource} destroy resources.destroy delete can:delete,resource
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment