Owl\Repositories\Fluent\UserRoleRepository::getByUserId PHP Method

getByUserId() public method

Get record by specified user ID.
public getByUserId ( integer $userId ) : stdClass
$userId integer
return stdClass | null
    public function getByUserId($userId)
    {
        return \DB::table($this->getTableName())->where('id', $userId)->first();
    }