2 Comments
User's avatar
daMask's avatar

This is a great idea. Are you going to create a PR to get this into core ?

Expand full comment
Nolan Phillips's avatar

Thanks! I don't think so. I'm not familiar enough with how they think about design decisions to feel comfortable doing so. For example, I don't think policies have a base class in Laravel. I suppose a trait might work well. Either way, this little snippet is so short people can pull it in if they like.

Wouldn't be mad if someone else opened a PR with this code in it though 😉

Expand full comment