Route in Laravel

The workflow of Laravel is shown as fallows:

source: Build a React App With a Laravel RESTful Back End

  • Step 1: Open project by using Visual Studio Code
  • Step 2: look the routing setting
  • Step 3: modify the content in welcome.blead.php file to see what happen

The API and the HTTP actions associated with those endpoints

  • GET /products/: Retrieve all products.
  • GET /product/{id}: Retrieve the product that matches the id.
  • POST /products: Create a new product and insert it into the database.
  • PUT /products/{id} : Update an existing product that matches the id.
  • DELETE /products/{id}: Delete the product with the given id.

source: https://code.tutsplus.com/tutorials/build-a-react-app-with-laravel-restful-backend-part-1-laravel-5-api--cms-29442

Videos

Reference:

results matching ""

    No results matching ""