How to check if a record belongs to a user?
Let's say my User can make blog posts. I have now retrieved a blog post and I want check if the given blog post belongs to the authenticated user so it can be edited. I was able to accomplish that but it doesn't seem the best way to do it.
Please sign in or create an account to participate in this conversation.
There's no shortage of content at Laracasts. In fact, you could watch nonstop
for days upon days, and still not see everything!