Package Data | |
---|---|
Maintainer Username: | santosalan |
Maintainer Contact: | alanssantos@outlook.com (Alan Santos) |
Package Create Date: | 2018-09-15 |
Package Last Update: | 2019-03-29 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-23 03:11:31 |
Package Statistics | |
---|---|
Total Downloads: | 105 |
Monthly Downloads: | 2 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
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