Download the PHP package petersowah/laravel-bulk-policies without Composer
On this page you can find all versions of the php package petersowah/laravel-bulk-policies. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download petersowah/laravel-bulk-policies
More information about petersowah/laravel-bulk-policies
Files in petersowah/laravel-bulk-policies
Package laravel-bulk-policies
Short Description Generate policies for all existing models in one go.
License MIT
Homepage https://github.com/petersowah/laravel-bulk-policies
Informations about the package laravel-bulk-policies
Generate policies for all existing models in one go.
This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
Installation
You can install the package via composer:
Usage
Generate Policies for All Models
To generate policies for all Eloquent models in your application, run:
This command will:
- Scan both
app/Models
andapp
for all Eloquent models (following Laravel conventions). - Generate a policy in
app/Policies
for each model that does not already have one. - Each generated policy will have the correct
App\Policies
namespace. - Skip any models that already have a corresponding policy.
Example output:
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.
Testing
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
- Peter Sowah
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-bulk-policies with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^10.0||^11.0||^12.0