tomatophp / filament-pwa

get a PWA feature on your FilamentPHP app with settings from panel
https://tomatophp.com/en/open-source/filament-pwa
MIT License
22 stars 7 forks source link
filament-plugin pwa pwa-apps

Screenshot

Filament PWA

Latest Stable Version License Downloads

get a PWA feature on your FilamentPHP app with settings from panel

Installation

composer require tomatophp/filament-pwa

now you need to publish and migrate settings table

php artisan vendor:publish --provider="Spatie\LaravelSettings\LaravelSettingsServiceProvider" --tag="migrations"
php artisan filament-settings-hub:install 

after install your package please run this command

php artisan filament-pwa:install

finally reigster the plugin on /app/Providers/Filament/AdminPanelProvider.php

->plugin(\TomatoPHP\FilamentPWA\FilamentPWAPlugin::make())

Screenshots

Install App Setting Hub Setting Page

Use Directive

you can use directive to allow PWA on none-FilamentPHP pages, just add this directive to your blade file on top of </head>

@filamentPWA

Publish Assets

you can publish config file by use this command

php artisan vendor:publish --tag="filament-pwa-config"

you can publish views file by use this command

php artisan vendor:publish --tag="filament-pwa-views"

you can publish languages file by use this command

php artisan vendor:publish --tag="filament-pwa-lang"

Other Filament Packages

Checkout our Awesome TomatoPHP