policies

Official

Centralize authorization with model policies.

Authorcodebar-ag
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Centralizes all authorization logic for a given Eloquent model, preventing duplicated checks and ensuring consistent access control across controllers and requests.

Core Features & Use Cases

  • Centralizes authorization logic per model in a single policy class
  • Enforces standard methods for each ability (viewAny, view, create, update, delete, etc.)
  • Automatically discovers and registers policies in Laravel's AuthServiceProvider

Quick Start

Define a policy for each model, register it in AuthServiceProvider, and start enforcing it in controllers and form requests.

Dependency Matrix

Required Modules

None required

Components

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: policies
Download link: https://github.com/codebar-ag/coding-guidelines/archive/main.zip#policies

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.