StringBladeCompiler icon indicating copy to clipboard operation
StringBladeCompiler copied to clipboard

Livewire support

Open bernhardh opened this issue 4 years ago • 1 comments

Not sure if this is intended, but livewire components aren't working.

{{ view(["template" => "<livewire:my-component />"], ["test" => "ABC"]) }}

I am getting "Undefined variable: _instance". Same livewire component inside a regular blade.php template is working.

bernhardh avatar Jul 28 '21 13:07 bernhardh

@bernhardh I haven't gotten a chance to really dig into this yet.

Have you tried the blade helper syntax?

@livewire('image-gallery', [
        'isOwner' => $isOwner,
        'token' => $token
        ])

TerrePorter avatar Aug 10 '22 21:08 TerrePorter