santosalan/laravel-crud
Generate Laravel CRUD
v1.1.12
2018-12-27 18:23 UTC
Requires
- php: >=7.0.0
- illuminate/contracts: ~5.1
- illuminate/http: ~5.1
- illuminate/support: ~5.1
- illuminate/database: ~5.1
- laravelcollective/html: ^5.4.0
- laravel/framework: ^5.4
- jeroennoten/laravel-adminlte: ^1.22
- santosalan/api-magic: >=0.0.4
- santosalan/laravel-utils: >=0.0.3
README
Install with Composer
php composer.phar require santosalan/laravel-crud
Doctrine Inflectors - Irregular Plural and Singular
Add it in config/app.php
/** * Irregulares Words */ 'doctrine-inflector' => [ 'plural' => [ 'irregular' => [ 'traducao' => 'traducoes', ], ], 'singular' => [ 'irregular' => [ 'traducoes' => 'traducao', ], ], ],
Add it in app/Providers/AppServiceProvider.php
public function boot() { // Doctrine Irregular Rules Inflector::rules('plural', config('app.doctrine-inflector.plural')); Inflector::rules('singular', config('app.doctrine-inflector.singular')); }
See Help
php artisan make:crud -h
See Tables
php artisan make:crud
Generate a Basic Laravel-CRUD examples
php artisan make:crud --tables [ all | table_number ] --path-models 'App\Models' --routes [ y | n ]
or
php artisan make:crud -t [ all | table_number ] -p 'App\Models' -r [ y | n ]
Generate a Basic Laravel-CRUD API Client to santosalan/lumen-crud core
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
Publish Provider
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