We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24304f6 commit 9949e48Copy full SHA for 9949e48
src/Component.php
@@ -81,6 +81,14 @@ public function voltComponentName(): string
81
*/
82
public function getAlias(): string
83
{
84
+ // Livewire 3.x alias registry...
85
+ if (app()->has(ComponentRegistry::class)) {
86
+ return $this->__alias ??= array_search(static::class, (fn () => $this->aliases)->call(
87
+ app(ComponentRegistry::class),
88
+ ));
89
+ }
90
+
91
+ // Livewire 4.x alias registry...
92
return $this->__alias ??= array_search(static::class, (fn () => $this->resolvedComponentCache)->call(
93
app('livewire.factory'),
94
));
0 commit comments