santosalan/lumen-crud is a Laravel package for generate lumen api crud.
It currently has 1 GitHub stars and 107 downloads on Packagist (latest version v1.0.5).
Install it with composer require santosalan/lumen-crud.
Discover more Laravel packages by santosalan
or browse all Laravel packages to compare alternatives.
Last updated
php composer.phar require santosalan/lumen-crud
$app->withFacades();
$app->withEloquent();
$app->register(SantosAlan\LumenCrud\ServiceProvider::class);
return [
/**
* Irregulares Words
*/
'doctrine-inflector' => [
'plural' => [
'irregular' => [
'traducao' => 'traducoes',
],
],
'singular' => [
'irregular' => [
'traducoes' => 'traducao',
],
],
],
];
$app->boot();
Inflector::rules('plural', config('app.doctrine-inflector.plural'));
Inflector::rules('singular', config('app.doctrine-inflector.singular'));
php artisan make:lumen-crud -h
php artisan make:lumen-crud
php artisan make:lumen-crud --tables [ all | table_number ] --path-models 'App\Models' --routes=[ y | n ] --base-model [ y | n ]
or
php artisan make:lumen-crud -t [ all | table_number ] -p 'App\Models' -r [ y | n ] -b [ y | n ]
Caution: All files will be replaced