Skip to content

Upgrade guide ​

Use these steps each time you move to a new version of Nimbus.

Before you start ​

  • Read the release notes of every version between yours and the new one.
  • Nimbus follows semantic versioning. Breaking changes only come in a major version, and they are listed under Version notes.
  • Commit your changes, so you can see what the upgrade changes in your files.

Upgrade ​

  1. Update the package with Composer.

    Terminal
    composer update sunchayn/nimbus
  2. Publish the interface assets again. The new version needs its own assets.

    Terminal
    php artisan vendor:publish --tag=nimbus-assets --force
  3. Compare your config/nimbus.php with the file that ships with the package. Add the options that are new, and remove the ones the release notes say are gone.

Version notes ​

Follow the section for your current version.

From 0.9.0 ​

The staging env is no longer allowed by default ​

If you use Nimbus on staging, add staging to allowed_envs.

The default auth injector is now actor_header ​

To keep the old injector, set injector to remember_me_cookie in your application's auth option.

Built-in injectors moved to Sunchayn\Nimbus\Modules\Magic\Injectors ​

If your config uses their class names, update them.

From 0.7.0 or 0.8.0 ​

Apply these changes, then those in From 0.9.0.

The base_url replaces api_base_url ​

Move your value from the application to the top level.

Routes are no longer grouped in nested folders ​

To get them back, set nested_folders to true.

From 0.4.0 to 0.6.2 ​

Apply these changes, then those in From 0.7.0 or 0.8.0.

Built-in injectors use string aliases ​

Replace RememberMeCookieInjector::class with 'remember_me_cookie', and TymonJwtTokenInjector::class with 'tymon_jwt'.

The route strategy and dynamic headers use strings ​

Use 'auto_detect' or 'openapi' for strategy, and '$uuid', '$email' or '$string' for header values. This is optional, because the old enums still work.

From 0.3.0 or earlier ​

Apply these changes, then those in From 0.4.0 to 0.6.2.

Options moved under named applications ​

Move routes, auth and headers to applications.main, and give it a name. Then add 'default_application' => 'main' at the top level.

If something breaks ​

  • Run php artisan nimbus:doctor and read what it reports.
  • See the troubleshooting guide.
  • To go back, install the previous version with Composer and publish the assets again.