Skip to content

Stubs to Good API RestFull with Laravel -Resource + Tests + Swagger

Notifications You must be signed in to change notification settings

sr2ds/laravel-api-stubs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Apr 29, 2022
daa05b1 · Apr 29, 2022

History

1 Commit
Apr 29, 2022
Apr 29, 2022
Apr 29, 2022
Apr 29, 2022
Apr 29, 2022
Apr 29, 2022

Repository files navigation

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

About

Stubs to Good API RestFull with Laravel -Resource + Tests + Swagger

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published