tomosia / laravel-easy-crud
Give commands to help programmers save time when coding
Requires
- illuminate/config: ~5.0|~6.0|~7.0|~8.0|~9.0
- illuminate/console: ~5.0|~6.0|~7.0|~8.0|~9.0
- illuminate/database: ~5.0|~6.0|~7.0|~8.0|~9.0
- illuminate/filesystem: ~5.0|~6.0|~7.0|~8.0|~9.0
- illuminate/http: ~5.0|~6.0|~7.0|~8.0|~9.0
- illuminate/pagination: ~5.0|~6.0|~7.0|~8.0|~9.0
- illuminate/support: ~5.0|~6.0|~7.0|~8.0|~9.0
This package is not auto-updated.
Last update: 2025-01-07 12:34:43 UTC
README
A package for adding php artisan make:api-crud
command to Laravel 8+ and Laravel Module
Auto generate:
- Controller
- Service
- Repository
- Request
- Resource
- Api Document using l5-swagger
Installation
Require the package with composer using the following command:
composer require tomosia/laravel-easy-crud --dev
Or add the following to your composer.json's require-dev section and composer update
"require-dev": { "tomosia/laravel-easy-crud": "^1.*" }
In your config/app.php add VietNH\LaraEasyDev\RepositoryServiceProvider::class to the end of the providers array:
'providers' => [ ... VietNH\LaraEasyDev\RepositoryServiceProvider::class, ],
Publish Configuration
php artisan vendor:publish --provider "VietNH\LaraEasyDev\RepositoryServiceProvider"
Usage
####All file:
php artisan make:api-crud {model} {--module=}
Example:
php artisan make:api-crud User --module=Api
####Each file:
php artisan make:controller {model} {module}
php artisan make:service {model} {module}
php artisan make:repository {model} {module}
php artisan make:request {model} {module}
php artisan make:response {model} {module}