santosalan / laravel-crud
Generate Laravel CRUD
Installs: 1 705
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 3
Open Issues: 0
Requires
- php: >=7.0.0
- jeroennoten/laravel-adminlte: >=1.22
- laravel/framework: >=5.4
- laravelcollective/html: >=5.4.0
- 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 ] --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]
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