parameters['server_uuid'])->update([ 'private_key_id' => $private_key_id ]); return redirect()->route('server.show', $this->parameters['server_uuid']); } public function mount() { $this->parameters = Route::current()->parameters(); $this->private_keys = ModelsPrivateKey::where('team_id', session('currentTeam')->id)->get(); } }