Authorization policies for resource access control. Use when working with authorization, permissions, access control, or when user mentions policies, authorization, permissions, can, ability checks.
The laravel-policies skill provides a structured approach to authorization in Laravel applications, specifically focusing on resource access control through the use of policies. It addresses the need for a robust permission system by allowing developers to encapsulate authorization logic, ensuring that only authorized users can perform specific actions on resources. This skill simplifies the management of permissions and helps maintain security by clearly defining who can do what within the application.
You can implement policies by defining methods in policy classes that utilize permission enums to check user capabilities.
This skill requires a basic understanding of Laravel's authorization system as well as familiarity with PHP and enum usage.
Yes, you can create custom methods in your policy classes for actions that are not covered by the standard policy methods.
This skill is designed for modern versions of Laravel that support policies and enums. Compatibility with older versions may vary.
If a user lacks the required permissions, the corresponding policy method will return false, preventing the action from being executed.
Quick Setup:
.claude/skills/Repository
leeovery/claude-laravel