validate([ 'name' => 'required|string|max:255', 'url' => 'required|url', 'username' => 'required|string|max:255', 'password' => 'required|string|max:255', 'api_token' => 'nullable|string|max:255', 'port' => 'required|integer', 'version' => 'nullable|string|max:255', ]); Airflow::create([ 'name' => $this->name, 'url' => $this->url, 'username' => $this->username, 'password' => $this->password, 'api_token' => $this->api_token, 'port' => $this->port, 'version' => $this->version, 'user_id' => Auth::user()->id, ]); session()->flash('message', 'Airflow cluster created successfully.'); } public function render() { return view('livewire.airflow-form'); } }