You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have upgraded to livewire 3 from livewire 2. having a lot of livewire component
Want to use Volt.
But getting error in regular page/livewire page while adding App\Providers\VoltServiceProvider::class in config/app.phpproviders array.
Normal error like Undefined variable. Despite being variable defined.
for Example:
In a blade file I assigned a variable $hello = 'world'.
In very next line I am printing echo $hello.
Output undefined variable $hello.
just after adding App\Providers\VoltServiceProvider::class class.
If I comment/delete this provider from provider array everything working as expected
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have upgraded to livewire 3 from livewire 2. having a lot of livewire component

Want to use
Volt
.But getting error in regular page/livewire page while adding
App\Providers\VoltServiceProvider::class
inconfig/app.php
providers
array.Normal error like
Undefined variable
. Despite being variable defined.for Example:
In a blade file I assigned a variable
$hello = 'world'
.In very next line I am printing
echo $hello
.Output
undefined variable $hello
.just after adding
App\Providers\VoltServiceProvider::class
class.If I comment/delete this provider from provider array everything working as expected
Beta Was this translation helpful? Give feedback.
All reactions