public function addTenant($tenant, $id = null) { if (func_num_args() == 1) { $id = $tenant->getKey(); } $this->tenants->put($this->getTenantKey($tenant), $id); }