macropay-solutions / laravel-crud-wizard-generator
Library for laravel-crud-wizard class generation
1.0.3
2025-03-05 15:36 UTC
Requires
- php: >=8.0.0
Requires (Dev)
- illuminate/console: ^9.0
Suggests
- laravel/framework: >= 8.0
- macropay-solutions/laravel-crud-wizard: *
- macropay-solutions/laravel-crud-wizard-free: *
This package is not auto-updated.
Last update: 2025-03-19 16:09:40 UTC
README
Library for laravel-crud-wizard-free and laravel-crud-wizard
Installation
1. Run composer command:
composer require macropay-solutions/laravel-crud-wizard-generator --dev
2. Publish the provider:
php artisan vendor:publish --provider="MacropaySolutions\LaravelCrudWizardGenerator\LaravelCrudWizardGeneratorServiceProvider"
Usage
php artisan make:api-resource {resourceName}
This will create a template for controller, service and model and will print instructions on what is left to be done manually.
Example:
# php artisan make:api-resource operations
Created Model: /var/www/html/project/app/Models/Operation.php
Created Service: /var/www/html/project/app/Services/OperationsService.php
Created Controller: /var/www/html/project/app/Http/Controllers/OperationsController.php
TODO:
- Create migration if needed,
- Fill the model's properties and relations,
- Define validations in controller,
- Expose resource in DbCrudMap::MODEL_FQN_TO_CONTROLLER_MAP.
License
This package is licensed under the license MIT.