'required', 'destination.network' => 'required', 'destination.server.ip' => 'required', ]; public function submit() { $this->validate(); $this->destination->save(); } public function delete() { instantRemoteProcess(['docker network rm -f ' . $this->destination->network], $this->destination->server); $this->destination->delete(); return redirect()->route('dashboard'); } }