f试ssefahah可能卡卡卡马卡卡计算机视觉事实上事实上飒飒飒gj◐◐◐◐hfkttkgdgkmcuocucocucoc顶顶顶顶顶顶顶顶顶顶顶顶uco朵朵可可放2巍峨2555555666369🌹 �����ѩ�����һ����dddf2qevf2fv69666 ? PNG ?%k25u25%fgd5n!? PNG ?%k25u25%fgd5n!? PNG ?%k25u25%fgd5n!? PNG ?%k25u25%fgd5n!home/nectalco/public_html/create.nectal.co.uk/app/Livewire/ChatbotDomains.php000064400000004166152666203730023313 0ustar00 'setDomains', ]; public function mount(Chatbot $chatbot): void { $chatbot->refresh(); $this->chatbot = $chatbot; $this->setDomains(); } public function setDomains(): void { $this->domains = $this->chatbot->domains ?? collect(); $this->addDomainButton = $this->chatbot->canNewDomainAdd(); } public function showModal(): void { $this->domain = null; $this->addDomainDialog = true; } public function closeModal(): void { $this->domain = null; $this->addDomainDialog = false; } public function rules(): array { return [ 'domain' => [ 'required', new DomainRule(true), Rule::unique('domains')->where('chatbot_id', $this->chatbot->id), ], ]; } public function getValidationAttributes(): array { return [ 'domain' => __('Domain'), ]; } public function addDomain(): void { $this->validate(); // $domains = $this->chatbot->domains(); if (! $this->chatbot->canNewDomainAdd()) { return; } $this->chatbot->domains()->create([ 'domain' => $this->domain, 'app_key' => Str::uuid(), ]); $this->resetErrorBag(); $this->dispatch('confirming-add-domain'); $this->closeModal(); $this->dispatch('refreshDomains')->self(); } public function render(): View { return view('livewire.chatbot.domains'); } }