laravel 5.3 put,patch和delete路由。 它们是什么以及如何使用它们?

I have knowledge of get and post routes but I want to learn how to use these routes (put, patch and delete) and what are their pros and cons. Till now I have used get and post to get, update or delete the record. I think it is not correct way to do it. Definitely they also have a purpose. If anyone can explain then please do it. Thanks.

The best way to explain is show how REST API works. Just imagine a book.

  • GET /book - get one books
  • POST /book - store a book
  • DELETE /book - delete a book
  • PATCH /book - modify book

  • GET /books - get list of books

  • POST /books - post many books
  • DELETE /books - delete all books

Different method for different actions and no needs of naming it like: '/getBook', '/deleteBook' and etc