Updating a module for v2.0

  • I created a module for v1.14 and am now testing it against AsgardCMS v 2.0.

    The error message I get when the module is installed is:

    Class Modules\Core\Contracts\Authentication does not exist (View: /var/www/asgard/Themes/Adminlte/views/layouts/master.blade.php) (View: /var/www/asgard/Themes/Adminlte/views/layouts/master.blade.php)

    which seems to have to do with authentication and permissions. Has anything been written on how to update a module?


  • Found it :)

    In the SidebarExtender.php file in my module,

    use Modules\Core\Contracts\Authentication;

    must be changed to:

    use Modules\User\Contracts\Authentication;

  • admin

    Indeed the contract location has been moved to the user module, thought it makes more sense there :)

    The settings contract has also been moved from the Core module to the settings module.

    Please don't hesitate to tell us what you think about v2.

Log in to reply