diff --git a/src/commands/MigrationCommand.php b/src/commands/MigrationCommand.php index 56c8b71f..7b0e9ef0 100644 --- a/src/commands/MigrationCommand.php +++ b/src/commands/MigrationCommand.php @@ -81,9 +81,10 @@ protected function createMigration($rolesTable, $roleUserTable, $permissionsTabl { $migrationFile = base_path("/database/migrations")."/".date('Y_m_d_His')."_entrust_setup_tables.php"; - $usersTable = Config::get('entrust.users_table'); - $userModel = Config::get('entrust.user'); - $userKeyName = (new $userModel)->getKeyName(); + $userModelName = Config::get('auth.providers.users.model'); + $userModel = new $userModelName(); + $usersTable = $userModel->getTable(); + $userKeyName = $userModel->getKeyName(); $data = compact('rolesTable', 'roleUserTable', 'permissionsTable', 'permissionRoleTable', 'usersTable', 'userKeyName');