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; $this->use_trmnl_liquid_renderer = $this->plugin->preferred_renderer === 'trmnl-liquid'; } 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', 'use_trmnl_liquid_renderer' => 'boolean', ]); $this->plugin->update([ 'trmnlp_id' => empty($this->trmnlp_id) ? null : $this->trmnlp_id, 'alias' => $this->alias, 'preferred_renderer' => $this->use_trmnl_liquid_renderer ? 'trmnl-liquid' : null, ]); 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(config('services.trmnl.liquid_enabled') && $plugin->markup_language === 'liquid') trmnl-liquid is a Ruby-based renderer that matches the Core service’s Liquid behavior for better compatibility. @endif @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