https://github.com/sr2ds/laravel-api-stubs
Stubs to Good API RestFull with Laravel -Resource + Tests + Swagger
https://github.com/sr2ds/laravel-api-stubs
Last synced: 4 months ago
JSON representation
Stubs to Good API RestFull with Laravel -Resource + Tests + Swagger
- Host: GitHub
- URL: https://github.com/sr2ds/laravel-api-stubs
- Owner: sr2ds
- Created: 2022-04-29T18:41:33.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-29T18:45:00.000Z (about 4 years ago)
- Last Synced: 2025-02-24T03:31:37.455Z (over 1 year ago)
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Laravel Stubs
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
# How to usage
## Download this files to your laravel application
```
mkdir stubs
cd stubs
git clone https://github.com/sr2ds/laravel-api-stubs .
```
## To generate resource api
```
php artisan make:model -c -f -m --api -R --test Product
```
## Additional configuration - After files generated
1. Is necessary change 3 `//@todo` lines in your tests files generated;
2. Write your attributes in `migrations` and `Model`(fillable and on swagger block) and `Requests`;
3. Create the route on `routes/api.php`