Query Scopes
Definition
Default Query Scopes
inDomain
<?php
use App\Person;
use Uccello\Core\Models\Domain;
$domain = ucdomain('uccello');
// Only people belonging to the uccello domain
$people = Person::inDomain($domain)->get();
// People belonging to the uccello domain and its descendants domains
$people = Person::inDomain($domain, true)->get();filterBy
assignedUser
Last updated
Was this helpful?