openclassify/addons/default/visiosoft/profile-module/src/Support/Command/getAdminUsers.php
spektra2147 ec473b51bc
change helper name (#719)
Co-authored-by: vedatakd <vedat@vebze.com>
2020-10-14 19:54:34 +03:00

13 lines
305 B
PHP

<?php namespace Visiosoft\ProfileModule\Support\Command;
use Anomaly\UsersModule\Role\Contract\RoleRepositoryInterface;
class getAdminUsers
{
public function handle()
{
$adminRole = app(RoleRepositoryInterface::class)->findBySlug('admin');
return $adminRole->getUsers();
}
}