تماشای ویدئو Part 24 ½ Fixing a Slug Bug How to Build a Blog with Laravel Series از آی-ویدئو

Ok, so we had a small bug in our last video. I thought we were done with the slugs, but as a helpful commenter pointed out, if you try to edit a post and save it without changing the slug, then you will get an error saying that the slug is not unique. When I thought about this for a second, it made sense. We take the same slug and then check if it's unique. Of course it is not unique because it exists in our current post. So it will always turn an error unless you change the slug every time. Today#0
27 تیر 1396
آی-ویدئو