bizarg/crud-generator

crud generator

2.0.3 2024-09-13 17:18 UTC

This package is auto-updated.

Last update: 2025-03-13 18:34:47 UTC


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