This project parses a Swagger 2.0 specification file and generates Laravel:
- models
- routes
- requests
- model factories
- controllers
- blade form templates
- database migrations
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,
php artisan swagger:generate spec.yaml