chrisreedio/filament-policy-generator

Generator Laravel Security Policies for Models/Resources

v4.0.0-beta.1 2025-08-25 17:59 UTC

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This package generates Laravel security policies based on FilamentPHP Resources.

Installation

You can install the package via composer:

composer require chrisreedio/filament-policy-generator

Usage

use ChrisReedIO\PolicyGenerator\PolicyGenerator;
PolicyGenerator::generateAll();

OR

php artisan policies:generate {--overwrite}

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.