Filament 4 · Filament 5 · Spatie snapshots

Snapshots in the panel — including a midnight demo reset

Create, export, copy to Drive or S3, and restore database dumps without leaving Filament. Schedule ongoing backups or revert a demo site to a golden baseline at 00:00.

Live demo: spiggle.skillbobby.com · demo@spiggle.net / password

Portal snapshots page: snapshot table, golden star, create action, and recent activity

Everything an operator needs around a dump

Built on spatie/laravel-db-snapshots. The plugin adds a Filament UI, schedules, safety rails, notifications, and remote copies.

Create on demand

Name a dump, pick a connection, optionally limit or exclude tables, and compress to .sql.gz. Work runs on a queue.

Restore with a confirm phrase

Type RESTORE before tables drop. Restores are blocked outside allowed environments so production stays safe by default.

Golden baseline

Star one snapshot as the known-good demo state. Nightly schedules can always load that file while newer dumps keep accumulating.

Schedules

Create, restore, remote-copy, or clean up on midnight, daily, hourly, weekly, every six hours, or a custom cron.

Export & remote storage

Download a dump from the table. Copy to any Laravel disk — S3, GCS, SFTP, or Google Drive via Flysystem.

Bell + inbox

Completions land in the Filament notification bell and a queued email. Mail fails silently if it is not configured.

Plugin tables survive restore

Schedule and operation rows are preserved across a restore so the plugin does not wipe its own history.

Activity log

Every create, restore, export, cleanup, and remote copy is recorded with status, actor, and a short message.

Filament 4 + 5 Laravel 11–13 Queued jobs Environment guard Retention cleanup Authorize callback

Put the portal back how you left it, every night

The reason this plugin exists: a public demo that visitors can break, then a known-good database at midnight.

1

Capture the baseline

When the portal looks right, create a snapshot named demo-baseline and mark it golden.

2

Schedule the restore

Action: restore. When: every night at 00:00. Turn on “Restore the golden snapshot”.

3

Leave the scheduler running

Laravel’s schedule calls portal-snapshot:run-schedules every minute. Failures hit the bell and email.

Private Composer package

Source lives in a private repo. Require it from GitHub, publish config + migrations, and register the plugin on the panel.

Register

Authorize whoever may dump or restore. Navigation group and sort are optional.

FilamentPortalSnapshotPlugin::make()
  ->authorize(fn () => auth()->user()?->is_admin ?? false)
  ->navigationGroup('Portal')

Then

  1. Add a snapshots disk in config/filesystems.php.
  2. Publish config and migrations, then migrate.
  3. Run a queue worker and * * * * * php artisan schedule:run.
  4. Optionally enable remote disks and mail recipients in config.
Private repo →

Quick answers

What does this plugin do?

It wraps Spatie database snapshots in a Filament page and a schedules resource. Operators can create, download, copy remotely, delete, and restore dumps — and schedule those same actions, including a nightly demo reset.

Which Filament versions?

Filament 4 and 5. PHP 8.2+. Laravel 11, 12, or 13.

Is restore allowed in production?

Not by default. Configure allow_restore_environments. The restore action also requires typing a confirmation phrase.

What if mail is not configured?

The queued email is skipped and logged at debug. The Filament bell still fires when database notifications are enabled.

How does Google Drive / S3 work?

Point filament-portal-snapshot.remote.disks at existing Laravel filesystem disks. The plugin copies the dump file; it does not invent a Drive driver.

Is this the same as Spatie Backup?

No. This is database snapshots (SQL dumps) via spatie/laravel-db-snapshots, not full application backups.

More Spiggle plugins

Spiggle Theme

Four sidebar layouts, six palettes, light and dark mode, and a live Theme Settings page.

View Spiggle Theme →

Material Theme

Material Design chrome for Filament v5 — Theme Settings, notifications, and search.

View Material Theme →

Need this on a panel?

Portal Snapshot is a private package. Get in touch for access, or for a custom Filament plugin built around your portal.

@iamspiggle →