Part 19 - Deleting Resources with CRUD [How to Build a Blog with Laravel 5 Series]

محسن
Our final lesson in our posts CRUD is to work on the "D" or Destroy (delete). This is actually fairly simple to do wit ...
Our final lesson in our posts CRUD is to work on the "D" or Destroy (delete). This is actually fairly simple to do with code in our controller, however it does have a few "gotchas" or things to keep an eye out for. The first thing to remember is that you need to protect this route. We wouldn't want to make the delete available as a basic "GET" request to a URL like "localhost:8000/posts/1/delete" because this could allow people to accidently delete posts. So wha

همه توضیحات ...