composer require ycamposde/ycscaffold
"required": {
...
...
"webpatser/laravel-uuid": "^2.0"
}
Open config/app.php
and, to your providers array at the bottom, add:
ycamposde\ycscaffold\GeneratorsServiceProvider::class,
You're all set. Run php artisan
from the console, and you'll see the new commands make:scaffold
.
Use this command to generator scaffolding of Test in your project:
php artisan make:scaffold Test
This command will generate:
app/Models/Test.php
app/Http/Controllers/Api/TestController.php
app/Http/Request/TestStore.php
app/Repositories/Test.php
app/Services/Test.php
##Collaborators Yerson Campos