laravel:policies-and-authorization
CommunitySecure your Laravel app with Policies & Gates
Authormeistro57
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps developers implement robust access control in Laravel applications, ensuring that users can only perform actions they are authorized to.
Core Features & Use Cases
- Policy-Based Authorization: Define granular permissions for specific models (e.g., PostPolicy).
- Gate-Based Authorization: Implement broader, cross-cutting authorization checks.
- Controller Integration: Standardize protection using
authorize()andauthorizeResource(). - Route Protection: Utilize the
canmiddleware for concise route-level security. - Use Case: Protect a blog post editing feature by ensuring only the author or an administrator can update it, using a
PostPolicy.
Quick Start
Generate a policy for the 'User' model using the artisan command.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: laravel:policies-and-authorization Download link: https://github.com/meistro57/chat_bridge/archive/main.zip#laravel-policies-and-authorization Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.