Upgrading
Upgrading 1.1 to 1.2
Laravel and PHP versions
Support for Laravel 5.4 was dropped in Voyager 1.2 and therefore the minimum PHP version is now 7.1. Please update your versions accordingly!
Update your Composer.json
To update to the latest version inside of your composer.json file make sure to update the version of Voyager inside the require declaration inside of your composer.json to:
tcg/voyager": "1.2.*
And then run composer update
Update Configuration
The voyager.php
configuration file had a few changes.
is now
Also, the option
was added. This allows you to exclude Voyagers migration-files from loading when running php artisan migrate
.
There is a new section titled Model specific settings that contains new settings for Compass, cache and media-manager.
Compass is now switched off automatically when the environment is not local
.
This can be overriden by the following new config-key:
New cache setting:
The media-manager got some new configuration-options:
The top dropdown-items can now be translated by providing a language-key:
If you were using casts in your user-model previously, please remove the array-cast of settings
.
Deprecation
can
, canOrAbort
, canOrFail
in the Voyager facade were all removed in favor of Policies and Gates.
Please refer to the Laravel documentation.
User BREAD
Final Steps
Voyager changed its way on how to load assets.
Assets don't get published anymore, instead they are loaded directly from the package.
Because of that, you can safely remove everything from your public/vendor/tcg/voyager
folder.
Also you can remove the assets_path
config-key from config/voyager.php
.
Troubleshooting
Be sure to ask us on our slack channel if you are experiencing any issues and we will try and assist. Thanks.
Last updated