F
Filament8mo ago
Abi

Livewire is not defined

When inject_assets is set to false on the livewire.php config, I get the error Livewire is not defined when loading the filament admin panel. What needs to be done to fix this?
3 Replies
Dennis Koch
Dennis Koch8mo ago
Why would you turn that off?
Abi
AbiOP8mo ago
have to use Alpine plugins on the laravel app outside of filament i actually ended up doing this on the AppServiceProvider. Not sure if there is any other way to fix this
if (Filament::getCurrentPanel()) {
Config::set('livewire.inject_assets', true);
}
if (Filament::getCurrentPanel()) {
Config::set('livewire.inject_assets', true);
}
Dennis Koch
Dennis Koch8mo ago
Probably via Render Hooks
Want results from more Discord servers?
Add your server