How to use Laravel’s Policy to authorize actions based on a specific attribute of a related model?
I have a Laravel application with two models: Post and User. Each Post belongs to a User, and I want to authorize actions on a Post based on a specific attribute of the User who owns the post.