resetErrorBag(); // Reload data $this->plugin = $this->plugin->fresh(); $this->trmnlp_id = $this->plugin->trmnlp_id; $this->uuid = $this->plugin->uuid; $this->alias = $this->plugin->alias ?? false; } 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), ], 'alias' => 'boolean', ]); $this->plugin->update([ 'trmnlp_id' => empty($this->trmnlp_id) ? null : $this->trmnlp_id, 'alias' => $this->alias, ]); Flux::modal('trmnlp-settings')->close(); } public function getAliasUrlProperty(): string { return url("/api/display/{$this->uuid}/alias"); } };?>
Recipe Settings
{{-- --}} TRMNLP Recipe ID Recipe ID in the TRMNL Recipe Catalog. If set, it can be used with trmnlp. Enable an Alias URL for this recipe. Your server does not need to be exposed to the internet, but your device must be able to reach the URL. Docs @if($alias) Alias URL Copy this URL to your TRMNL Dashboard. By default, image is created for TRMNL OG; use parameter ?device-model= to specify a device model. @endif
Cancel Save