php composer.phar require santosalan/laravel-crud
/**
* Irregulares Words
*/
'doctrine-inflector' => [
'plural' => [
'irregular' => [
'traducao' => 'traducoes',
],
],
'singular' => [
'irregular' => [
'traducoes' => 'traducao',
],
],
],
public function boot()
{
// Doctrine Irregular Rules
Inflector::rules('plural', config('app.doctrine-inflector.plural'));
Inflector::rules('singular', config('app.doctrine-inflector.singular'));
}
php artisan make:crud -h
php artisan make:crud
php artisan make:crud --tables [ all | table_number ] --path-models 'App\Models' --routes [ y | n ] --theme [1=AdminLTE | 2=Porto Admin]
or
php artisan make:crud -t [ all | table_number ] -p 'App\Models' -r [ y | n ] -T [1=AdminLTE | 2=Porto Admin]
php artisan make:crud --tables [ all | table_number ] --path-models 'App\Models' --routes [ y | n ] --api-client Y
or
php artisan make:crud -t [ all | table_number ] -p 'App\Models' -r [ y | n ] -a Y
php artisan vendor:publish --provider 'SantosAlan\LaravelCrud\ServiceProvider'
If make crud the API Client configure the app/Services/CoreApiService.php with data of the system core Lumen CRUD Server
Caution: All files will be replaced