sfneal / crud-model-actions
Abstraction layers for creating CRUD Action classes to execute actions on Eloquent Models.
Installs: 11 483
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: ^8.0
- laravel/framework: ^8.75|^9.0|^10.0|^11.0
- sfneal/actions: ^2.0
- sfneal/address: ^1.2 || ^2.0 || ^3.0
- sfneal/models: ^2.3 || ^3.0 || ^4.0
- sfneal/observables: ^1.0
Requires (Dev)
- orchestra/testbench: ^7.40|^8.0|9.0
- phpunit/phpunit: ^9.6|^10.0|^11.0
- scrutinizer/ocular: ^1.8
- sfneal/datum: ^1.5 || ^2.0
- sfneal/mock-models: >=0.6
README
Abstraction layers for creating CRUD Action classes to execute actions on Eloquent Models.
Installation
You can install the package via composer:
composer require sfneal/crud-model-actions
Usage
Use Action classes extended from CrudModelAction to execute CRUD actions on Eloquent Models.
In order to set a default TrackingEvent to be fired upon successful execution, publish the ServiceProvider & specify an Event.
php artisan vendor:publish --provider="Sfneal\CrudModelActions\Providers\CrudModelActionServiceProvider"
// Usage description here
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email stephen.neal14@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
PHP Package Boilerplate
This package was generated using the PHP Package Boilerplate.