Skip to content

Migration Guides

Darius Matulionis edited this page Sep 11, 2020 · 1 revision

Migrate from <7.0 to 8.0

  • Remove config/l5-swagger.php file (make a copy if needed)
  • Remove resources/views/vendor/l5-swagger directory
  • Run php artisan vendor:publish --provider "L5Swagger\L5SwaggerServiceProvider" to publish new swagger-ui view and configuration
  • Edit your config/l5-swagger.php file

Migrate from 3.0|4.0 to 5.0

  • Remove config/l5-swagger.php file (make a copy if needed)
  • Remove public/vendor/l5-swagger directory
  • Remove resources/views/vendor/l5-swagger directory
  • Run l5-swagger:publish to publish new swagger-ui view and configuration
  • Edit your config/l5-swagger.php file

Migrate from 2.0 to 3.0

  • Replace $this->app->register('\Darkaonline\L5Swagger\L5SwaggerServiceProvider'); with $this->app->register(\L5Swagger\L5SwaggerServiceProvider::class); in your AppServiceProvider or add \L5Swagger\L5SwaggerServiceProvider::class line in your config/app.php file
  • Run l5-swagger:publish-config to publish new config and make your changes if needed
  • Remove public/vendor/l5-swagger directory
  • Remove resources/views/vendor/l5-swagger directory
  • Run l5-swagger:publish-assets to publish new swagger-ui assets
  • Run l5-swagger:publish-views to publish new views