- Software development

- FilamentPHP

# Turning a Filament panel into a Progressive Web App

 ![Profile picture for user Dan](/sites/default/files/styles/thumbnail/public/pictures/2023-10/dan.png?itok=5NDKFwZO)

Dan

 27th November 26

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

```plaintext
composer require alareqi/filament-pwa
```

### 2. Publish the config and assets

Publishing is optional, but you'll want the config file at least.

```php
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
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`:

```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:

```php
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
php artisan filament-pwa:setup --generate-icons --source=public/logo.svg
```

Use 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

```plaintext
php artisan filament-pwa:setup --validate
```

Then open your panel in Chrome, go to DevTools &gt; 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 &gt; 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.

## Case study

 [    ![The Coders Guild - PWA](/sites/default/files/2026-11/TCG-Phase-1-Teaser-Image.png "The Coders Guild - PWA Phase 1") ](/case-study/coders-guild-pwa-phase-1)

Service design

Software

### Reducing learner admin: Building a mobile-first learner platform for The Coders Guild

#### Making off-the-job logging as easy as taking a photo, without losing the audit trail.

 [View Case Study](/case-study/coders-guild-pwa-phase-1)

## Related Posts

##  [Bringing user insight into the WordPress editor](/blog/post/bringing-user-insight-wordpress-editor)

- UX

- Wordpress

 How we made user needs part of the content...

 [Read more](/blog/post/bringing-user-insight-wordpress-editor)

##  [Building a Custom Shopify Volume Discount Extension](/blog/post/building-custom-shopify-volume-discount-extension)

- Software development

- Shopify

 When tasked with creating a sophisticated volume discount system...

 [Read more](/blog/post/building-custom-shopify-volume-discount-extension)

##  [Integrating Filament Shield with Filament Spatie Laravel Backup](/blog/post/integrating-filament-shield-filament-spatie-laravel-backup)

- Backups,
- Security

- FilamentPHP,
- Laravel

 Integrating Filament Shield with Filament Spatie Laravel Backup

 [Read more](/blog/post/integrating-filament-shield-filament-spatie-laravel-backup)