تماشای ویدئو Part 39 Deleting Tags Safely How to Build a Blog with Laravel 5 Series از آی-ویدئو

Deleting many-to-many relationships in Laravel 5.2 means that we must use a special detach() method before deleting the resource itself. This tutorial will show you how it works. In previous videos we worked on our Tags model and the CRUD involved with it. We set up our pivot table to track the relationship between tags and posts. Tags have many posts and posts have many tags. Simple stuff. But deleting these relationships can be difficult. We can't simply delete the tag because then the posts will still
30 آذر 1396
آی-ویدئو