Skip to content

Instantly share code, notes, and snippets.

@MrDavidChz
Forked from d21anthony/resourceControllers
Created February 19, 2018 18:07
Show Gist options
  • Save MrDavidChz/17de473b0d44482eb9deecfeb2f68cc1 to your computer and use it in GitHub Desktop.
Save MrDavidChz/17de473b0d44482eb9deecfeb2f68cc1 to your computer and use it in GitHub Desktop.
Resource Controllers : Laravel
*****************************************
*HTTP VERB | ACTION *
*****************************************
* GET | READ *
*****************************************
* POST | CREATE *
*****************************************
* PUT | UPDATE *
*****************************************
* DELETE | DELETE *
*****************************************
Route Declaration Created Relationship with Generated Controller
**********************************************************************
*HTTP VERB | Path | Controller Action/method *
**********************************************************************
* GET | /users | Index *
**********************************************************************
* GET | /users/create | Create *
**********************************************************************
* POST | /users | Store *
**********************************************************************
* GET | /users/{id} | Show (individual record) *
**********************************************************************
* GET | /users/{id}/edit | Edit *
**********************************************************************
* PUT | /users/{id} | Update *
**********************************************************************
* DELETE | /users/{id} | Destroy *
**********************************************************************
* *
**********************************************************************
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment