laravel-pwa icon indicating copy to clipboard operation
laravel-pwa copied to clipboard

Filamentphp support?

Open RoseRiyadh opened this issue 1 year ago • 1 comments

good day, is this package compatible with Filamentphp dashboards? or only blade pages?

RoseRiyadh avatar Feb 13 '24 10:02 RoseRiyadh

you can't use livewire offline as it requires a server request, but as far as other pwa features, they would work. Nothing unique in that way to filament when it comes to PWA support though.

MACscr avatar Mar 07 '24 19:03 MACscr

Here is how you integrate it with your filament panel provider as there really isn't a template to drop the blade directive into.

public function panel(Panel $panel): Panel
    {
        return $panel
           ...
           ->renderHook(
                PanelsRenderHook::HEAD_END,
                function (): string {
                    return Blade::render('@laravelPWA');
                }
            )
           ...
     }

citricguy avatar Sep 30 '24 23:09 citricguy