class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
//
FilamentView::registerRenderHook(
PanelsRenderHook::BODY_END,
function(){
return "<script>
document.addEventListener('alpine:init', function() {
// console.log(window.Alpine.store('sidebar').close());
window.Alpine.store('sidebar').close();
});
</script>";
}
);
}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
//
}
}
filament open and close nav using js
by
Tags:
Leave a Reply