This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
You can install the package via composer:
composer require petersowah/laravel-bulk-policiesTo generate policies for all Eloquent models in your application, run:
php artisan make:bulk-policiesThis command will:
- Scan both
app/Modelsandappfor all Eloquent models (following Laravel conventions). - Generate a policy in
app/Policiesfor each model that does not already have one. - Each generated policy will have the correct
App\Policiesnamespace. - Skip any models that already have a corresponding policy.
Example output:
Discovered models:
- App\Models\User
- App\Models\Post
---
Created policies:
- UserPolicy
- PostPolicy
Skipped (already exist):
- CommentPolicy
Note: This package is convention-driven and does not require or support custom configuration for model or policy paths. It always follows Laravel's default structure for models and policies.
composer testPlease see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.