for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Laravel Platfourm package.
*
* (c) Avtandil Kikabidze aka LONGMAN <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Longman\Platfourm\User\Services;
use Longman\Platfourm\Contracts\Auth\AuthUserService;
use Longman\Platfourm\Service\EntityService;
use Longman\Platfourm\Service\Traits\SearchAndPaginateEntities;
use Longman\Platfourm\User\Repositories\Eloquent\RoleRepository;
class GetRolesService extends EntityService
{
use SearchAndPaginateEntities;
protected $repository;
protected $authUserService;
public function __construct(
AuthUserService $authUserService,
RoleRepository $repository
) {
$this->authUserService = $authUserService;
$this->repository = $repository;
$authUserService->should('role.*');
}