'required|string', 'env.value' => 'required|string', 'env.is_build_time' => 'required|boolean', ]; public function mount() { $this->parameters = getParameters(); } public function submit() { $this->validate(); $this->env->save(); } public function delete() { $this->env->delete(); $this->emit('refreshEnvs'); } }