tarre / beyond-crud-helpers
Helper commands for "Laravel Beyond Crud"
1.0.1
2022-04-23 09:15 UTC
Requires
- php: ^7.4|^8.0
- laravel/framework: *
- nette/php-generator: ^3.6
Suggests
- doctrine/dbal: The mmake:model and mmake:dto can read your database and fill the blanks
- spatie/data-transfer-object: The mmake:dto comman usesspaties dto package, not required, change config file to remove dependency
This package is auto-updated.
Last update: 2025-02-23 15:40:01 UTC
README
This package has many helper commands for the Laravel BEyond CRUD project by Spatie
Installation
composer require --dev tarre/beyond-crud-helpers
php artisan vendor:publish --provider=Tarre\\BeyondCrudHelpers\\ServiceProvider
- checkout
config/beyond-crud-helper.php
but default is OK
Usage
php artisan mmake:
double M
Available commands
The command parameter table
requires doctrine/dbal
New
mmake:dto {name} {location?} {--table=} {--collection} {--force}
mmake:action {name} {location?} {--construct} {--force}
Experimental
mmake:model-getter-migration {model} {location}
(This is an attempt to create actions for all your getters for a given model)
Traditional
mmake:controller {name} {location?} {--invoke} {--api} {--model=} {--force}
mmake:event {name} {location?} {--model=} {--force}
mmake:exception {name} {location?} {--force}
mmake:job {name} {location?} {--model=} {--force}
mmake:listener {name} {location?} {--force}
mmake:model {name} {location?} {--table=} {--force}
mmake:notification {name} {location?} {--model=} {--force}
mmake:observer {name} {location?} {--model=} {--force}
mmake:policy {name} {location?} {--model=} {--force}
mmake:query {name} {location?} {--model=} {--force}
mmake:request {name} {location?} {--force}
mmake:resource {name} {location?} {--collection} {--force}
mmake:rule {name} {location?} {--force}