protected function prepareRoles(array $roles)
    {
        $now = now();

        return array_map(function ($role) use ($now) {
            return array_merge($role, [
                'slug'         => $role['slug'] ?? $this->slugify($role['name']),
                'is_locked'    => $role['is_locked'] ?? true,
                'created_at'   => $now,
                'updated_at'   => $now,
                'activated_at' => array_get($role, 'activated_at', $now),
            ]);
        }, $roles);
    }