abcms/yii2-admin

There is no license information available for the latest version (dev-master) of this package.

Installs: 15

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

dev-master 2020-06-15 20:05 UTC

This package is auto-updated.

Last update: 2024-04-16 04:26:29 UTC


README

Features:

  • Admin CRUD.
  • Admin pages: login, update profile.

Install:

composer require abcms/yii2-library:dev-master
composer require abcms/yii2-admin:dev-master

DB migrations

1- Add the migration namespaces in the console.php configuration file:

'controllerMap' => [
    'migrate' => [
        'class' => 'yii\console\controllers\MigrateController',
        'migrationNamespaces' => [
            'abcms\library\migrations',
            'abcms\admin\migrations',
        ],
    ],
],

2- Run ./yii migrate

Add the admin-user module

[
    'modules' => [
        'admin-user' => [
            'class' => 'abcms\admin\module\Module',
        ],
    ],
]

Update the user component

Update identityClass and loginUrl from the user component in the web.php configuration file:

'user' => [
    'identityClass' => 'abcms\admin\models\Admin',
    'enableAutoLogin' => true,
    'loginUrl' => ['/admin-user/user/login'],
],

Login and change password

User admin / admin to login and don't forget to change the default password and email.