Bonus features

Laravel adds two additional methods that are not usually part of a standard RESTful API. A GETmethod on the model URL, adding create is used to display a form to create the model. A GETmethod on the model URL with its ID, adding edit is used to display a form to create the model. These two functions are useful for providing a URL that will load a form, even though this type of usage is not a standard RESTful:

HTTP VERBFunctionURL
GETThis displays an accommodation creation form/accommodations/create
GETThis displays an accommodation modification/update form/accommodations/{id}/edit