© 2026 Hedgehog Software, LLC
Undefined variable $record
php artisan make:form-layout BunnyVideo
<div {{ $attributes }}> {{ $getChildComponentContainer() }} <div class="mt-6"> <h2 class="text-xl font-bold">Video Preview</h2> <iframe src="https://iframe.mediadelivery.net/embed/249784/{$record->key}" width="640" height="360" allowfullscreen></iframe> </div> </div>
class BunnyVideo extends Component { protected string $view = 'forms.components.bunny-video'; public function __construct(protected string|Closure|null $key) { } public static function make(string $key): static { logger()->info($key); return app(static::class, ['key' => $key]); } public function getKey(): ?string { return $this->key instanceof Closure ? ($this->key)() : $this->key; } }
BunnyVideo::make('key'),