src/Defender/Repositories/Eloquent/EloquentUserRepository.php
<?php
namespace Artesaos\Defender\Repositories\Eloquent;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Contracts\Foundation\Application;
use Artesaos\Defender\Contracts\Repositories\UserRepository;
class EloquentUserRepository extends AbstractEloquentRepository implements UserRepository
{
public function __construct(Application $app, Model $user)
{
parent::__construct($app, $user);
}
public function attachRole($roleName)
{
return $this->model->attachRole($roleName);
}
public function attachPermission($permissionName, array $options = [])
{
return $this->model->attachPermission($permissionName, $options);
}
}