juddling/specification-generator

There is no license information available for the latest version (0.2.0) of this package.

Generate Laravel migrations base on specification files

0.2.0 2018-02-16 14:33 UTC

This package is auto-updated.

Last update: 2024-04-29 03:47:48 UTC


README

Build Status

This project parses a Swagger 2.0 specification file and generates Laravel:

  • models
  • routes
  • requests
  • model factories
  • controllers
  • blade form templates
  • database migrations

Installation

Run:

composer require juddling/specification-generator --dev

Laravel 5.4 and below add the following service provider to config/app.php:

\Juddling\Parserator\GeneratorServiceProvider::class,

Usage

php artisan swagger:generate spec.yaml