Blog - Upgrading

Upgrade notes

v1.x - v2.0.0

This version of EnsōCopy requires version ^4.0 of EnsōCore.

  1. 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"
    
  2. 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 menuitem element 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'),
    
       ...
    ]);
    
  3. 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 your routes/web.php file and wrap them:

    Route::prefix('admin')->name('admin.')->group(function () {
     EnsoGyms::adminRoutes();
    });
    
  4. The CanPublishItems has been incorporated into EnsoCore's IsPublishable traits. If you have any models with a canPublish method, you should rename this to isPublishableCanPublish.