bizarg / crud-generator
crud generator
2.0.3
2024-09-13 17:18 UTC
Requires
- php: >=8.0
- bizarg/string-helper: ^1.0
- illuminate/console: *
- illuminate/support: *
README
config/app.php
[ 'providers' => [ Bizarg\Crud\CrudServiceProvider::class, ] ];
template property example CrudGenerate:
'CrudGenerate' - {{modelName}}
'crudGenerate' - {{modelNameSingularLowerCaseFirst}}
'crudGenerates' - {{modelNamePluralLowerCase}}
'crud_generates' - {{modelNamePluralLowerCaseUnderscore}}
'CrudGenerates' - {{modelNamePlural}}
'crud-generates' - {{modelNamePluralLowerCaseHyphen}}
'2023_11_02_154414_create_crud_generates_table' - {{migrationName}}
config:
<?php return [ 'paths' => [ 'stub' => base_path('resources/stubs'), ], 'templates' => [ [ 'path' => 'app/Http/Controllers/Api', 'filename' => '{{modelName}}Controller', 'stub' => 'Controller' ], ... ] ];
php artisan vendor:publish --tag=crud-generator-config
php artisan vendor:publish --tag=crud-generator-stubs
php artisan crud:generate UserProjectTest