Livewire: @livewire(App\Http\Livewire\Counter::class) callable

Created on 1 Jan 2020  路  4Comments  路  Source: livewire/livewire

I need to use some Livewire Components in my package
So i think it much more clear and reuseable if we can call by blade directive by Component classname.

Most helpful comment

Ah, I see - it's not currently possible, wouldn't be too hard to implement. Open to PRing?

All 4 comments

@caominhduc3108 - can't you already do this? Did you try?

Ah, I see - it's not currently possible, wouldn't be too hard to implement. Open to PRing?

@calebporzio I just some lines of code in LivewireManager@active.
With me Classname is more readable than Alias.

Oh. So sorry but now having issue when request "livewire/message/Classname"

Merged PR, should be good

Was this page helpful?
0 / 5 - 0 ratings