Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit e6a6bb1

Browse files
committed
Added UID scope for OpenLDAP
- Closes #268
1 parent 9e65e5e commit e6a6bb1

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/Scopes/UidScope.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
namespace Adldap\Laravel\Scopes;
4+
5+
use Adldap\Query\Builder;
6+
7+
class UidScope implements ScopeInterface
8+
{
9+
/**
10+
* {@inheritdoc}
11+
*/
12+
public function apply(Builder $builder)
13+
{
14+
$builder->whereHas($builder->getSchema()->userId());
15+
}
16+
}

0 commit comments

Comments
 (0)