'nullable', 'settings.is_resale_license_active' => 'nullable', ]; protected $validationAttributes = [ 'settings.resale_license' => 'License', 'instance_id' => 'Instance Id (Do not change this)', 'settings.is_resale_license_active' => 'Is License Active', ]; public function mount() { $this->instance_id = config('app.id'); $this->settings = InstanceSettings::get(); } public function submit() { $this->validate(); $this->settings->save(); if ($this->settings->resale_license) { try { resolve(CheckResaleLicense::class)(); $this->emit('reloadWindow'); } catch (\Throwable $e) { session()->flash('error', 'Something went wrong. Please contact support.
Error: ' . $e->getMessage()); ray($e->getMessage()); return redirect()->to('/settings/license'); } } } }