public function createDomain($domain) { $this->server->createDomain($domain); Domain::create(['name' => $domain, 'user_id' => Auth::User()->id]); }