This repository contains some stubs to simplify your life with Laravel.
Is required that your application has L5-Swagger setuped to correct run. If necessary, you can check this repository with all configuration, fully works and video demonstrations:
https://github.com/sr2ds/laravel-9-tutorial
mkdir stubs
cd stubs
git clone https://github.com/sr2ds/laravel-api-stubs .
php artisan make:model -c -f -m --api -R --test Product
- Is necessary change 3
//@todo
lines in your tests files generated; - Write your attributes in
migrations
andModel
(fillable and on swagger block) andRequests
; - Create the route on
routes/api.php