Blog - Upgrading
Upgrade notes
v1.x - v2.0.0
This version of EnsōCopy requires version ^4.0 of EnsōCore.
This version provides separate publishable config file for each of it's cruds. The should be merged into your regular config by the service provider, but if changes are needed can be published with:
php artisan vendor:publish --provider "Yadda\Enso\Gyms\GymServiceProvider --tag enso-gyms"If you have added the menu item to EnsoMenu using a static array, you should instead use the value from the new config file (copying any differences into the
menuitemelement of your config file)EnsoMenu::addItems([ ... [ 'icon' => 'fa fa-building', 'label' => 'Gyms', 'route' => ['admin.gyms.gyms.index'], ], ... ]);Should become
EnsoMenu::addItems([ ... Config::get('enso.crud.gym.menuitem'), ... ]);Admin routes are no longer automatically have their path & name prefixed with
admin. To retain the original routes, you should add them to a routes file that provides these, or add them to yourroutes/web.phpfile and wrap them:Route::prefix('admin')->name('admin.')->group(function () { EnsoGyms::adminRoutes(); });The
CanPublishItemshas been incorporated into EnsoCore'sIsPublishabletraits. If you have any models with acanPublishmethod, you should rename this toisPublishableCanPublish.