loadData(); } public function loadData(): void { $this->resetErrorBag(); // Reload data $this->plugin = $this->plugin->fresh(); $this->trmnlp_id = $this->plugin->trmnlp_id; $this->uuid = $this->plugin->uuid; } public function saveTrmnlpId(): void { abort_unless(auth()->user()->plugins->contains($this->plugin), 403); $this->validate([ 'trmnlp_id' => [ 'nullable', 'string', 'max:255', Rule::unique('plugins', 'trmnlp_id') ->where('user_id', auth()->id()) ->ignore($this->plugin->id), ], ]); $this->plugin->update([ 'trmnlp_id' => empty($this->trmnlp_id) ? null : $this->trmnlp_id, ]); //$this->loadData(); // Reload to ensure we have the latest data Flux::modal('trmnlp-settings')->close(); } };?>
Recipe Settings
{{-- --}} TRMNLP Recipe ID Recipe ID in the TRMNL Recipe Catalog. If set, it can be used with trmnlp.
Cancel Save