Laravel: Get started with REST API Route::Resource definitions
- This is the first article I read to get up to speed with API Route::Resource.
https://larachamp.com/a-beginners-guide-to-resource-routes-in-laravel/
They are a way to define more than one REST call into a single place
- Next, I wanted to look at an example of an API create function. This is the function that allows to add a single record of new information into the database via a POST command.
I found the following github project that contains relevant information:
I cloned on a blank folder as folllows:
git clone https://github.com/Tony133/laravel-api-rest.git
The file that contains the definition I was looking for was:
app/Http/Controllers/Api/Books/BooksController.php
and the function name is create