Turning a Filament panel into a Progressive Web App
When we built the learner platform for The Coders Guild, we needed apprentices to log off-the-job training from their phones. A native app would have meant app store submissions, two codebases and a slower release cycle. A Progressive Web App (PWA) gave learners a home-screen icon and an app-like experience from the same Laravel and Filament codebase we were already building.
Here's how to add PWA support to a Filament panel using the alareqi/filament-pwa plugin.
What you get
The plugin adds a web app manifest, a service worker with an offline page, install prompts with platform-specific instructions, and an Artisan command that generates every icon size from a single logo. It works with Filament v3 and v4, and the setup is the same for both.
Before you start
PWAs only work over HTTPS. Service workers won't register on an insecure origin, so you'll need a valid SSL certificate in production. Locally, localhost is treated as secure, so you can test without one.
1. Install the package
composer require alareqi/filament-pwa2. Publish the config and assets
Publishing is optional, but you'll want the config file at least.
php artisan vendor:publish --tag="filament-pwa-config"
php artisan vendor:publish --tag="filament-pwa-assets"If you need to customise the install banner or offline page, publish the views too:
php artisan vendor:publish --tag="filament-pwa-views"3. Register the plugin
Add the plugin to your panel provider, for example app/Providers/Filament/AdminPanelProvider.php:
use Alareqi\FilamentPwa\FilamentPwaPlugin;
public function panel(Panel $panel): Panel
{
return $panel
// ...
->plugins([
FilamentPwaPlugin::make(),
]);
}If you run multiple panels (we had separate experiences for learners, coaches and admins), register it on each panel that should be installable.
4. Configure the manifest
Open config/filament-pwa.php and set the details users will see when they install the app:
return [
'name' => 'Learner Portal',
'short_name' => 'Learner',
'description' => 'Log your off-the-job training and track your progress',
// ...
];Keep short_name brief. It's what appears under the icon on a home screen, and anything over about 12 characters gets truncated.
The plugin picks up theme colours, language and text direction from your Filament and Laravel configuration, so you only need to override them if you want something different.
5. Generate icons
PWAs need icons at a range of sizes for different devices. Rather than exporting them by hand, point the setup command at your logo:
php artisan filament-pwa:setup --generate-icons --source=public/logo.svgUse an SVG if you have one. PNG and JPG work too, but start with at least 512×512 pixels so the larger icons stay sharp.
6. Validate
php artisan filament-pwa:setup --validateThen open your panel in Chrome, go to DevTools > Application, and check the Manifest and Service Workers sections. Lighthouse's PWA audit is also worth running.
Things to know
iOS. Safari doesn't support automatic install prompts, so iPhone users have to tap Share > Add to Home Screen. The plugin shows instructions for this, but it's worth adding a line to your onboarding emails too. For The Coders Guild, this was a small price compared with app store submission and review.
Cache with care. Service workers cache aggressively. After a deployment, users can see stale assets until the worker updates. Test your release process on a real device before go-live.
Check your server config. Make sure your web server serves .webmanifest files with the correct MIME type (application/manifest+json).
Is a PWA right for you?
For internal tools, portals and admin panels, a PWA is often all you need. You skip app store fees and reviews, ship updates instantly and maintain one codebase. If you need deep device integration, background processing or a presence in the app stores, native or React Native is still the better route.