/**
* Add a tenant to scope by.
*
* @param string|Model $tenant
* @param mixed|null $id
*/
public function addTenant($tenant, $id = null)
{
if (func_num_args() == 1) {
$id = $tenant->getKey();
}
$this->tenants->put($this->getTenantKey($tenant), $id);
}