Last active
February 19, 2018 18:07
-
-
Save d21anthony/10569350 to your computer and use it in GitHub Desktop.
Resource Controllers : Laravel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
***************************************** | |
*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