PHPackages                             axilivo/seedvault - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. axilivo/seedvault

ActiveLibrary[Database &amp; ORM](/categories/database)

axilivo/seedvault
=================

A Laravel package to create, manage, and restore database snapshots as Seeder files with a simple UI and Artisan commands.

v1.0.0(10mo ago)0502↓100%MITPHP

Since Jul 11Pushed 10mo agoCompare

[ Source](https://github.com/axilivo/seedvault)[ Packagist](https://packagist.org/packages/axilivo/seedvault)[ RSS](/packages/axilivo-seedvault/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

SeedVault
=========

[](#seedvault)

**SeedVault** is a simple Laravel package to create, manage, and restore database snapshots as Seeder files — right from the UI or Artisan commands.

---

📦 Features
----------

[](#-features)

✅ Take a snapshot of your database (except migrations &amp; snapshot table).
✅ Store snapshots in `database/seeders/` with a unique timestamp.
✅ View snapshot history with date/time.
✅ Restore database from any snapshot.
✅ Delete snapshots you don’t need.
✅ Clean TailwindCSS-powered standalone UI.

---

🚀 Installation
--------------

[](#-installation)

```
composer require axilivo/seedvault
```

---

⚙️ Publish &amp; Migrate
------------------------

[](#️-publish--migrate)

> The package auto-loads its migration. Just run:

```
php artisan migrate
```

This creates the `axilivo_seed_snapshots` table to keep track of your snapshots.

---

🧩 Usage
-------

[](#-usage)

### ✅ 1. Create a snapshot

[](#-1-create-a-snapshot)

- Using Artisan:

    ```
    php artisan seedvault:snapshot
    ```
- Or using the UI:

    Visit `/seed-vault` in your browser and click **Create Snapshot**.

---

### ✅ 2. Restore a snapshot

[](#-2-restore-a-snapshot)

- From the UI: Click **Restore** next to the snapshot you want.
- Or run manually:

    ```
    php artisan db:seed --class=Database\\Seeders\\AllTableDataSeeder_YYYY_MM_DD_HHMMSS
    ```

*(Replace with your snapshot’s class name.)*

---

### ✅ 3. Delete a snapshot

[](#-3-delete-a-snapshot)

- From the UI, click **Delete**.
- This will remove both the Seeder file &amp; the DB record.

---

📄 Routes
--------

[](#-routes)

MethodURIActionGET`/seed-vault`View all snapshotsPOST`/seed-vault/create`Create snapshotPOST`/seed-vault/restore/{id}`Restore snapshotDELETE`/seed-vault/delete/{id}`Delete snapshotAll routes are auto-loaded with the `web` middleware and `seed-vault` prefix.

---

🗂️ File Locations
-----------------

[](#️-file-locations)

- Snapshots: `database/seeders/`
- Log table: `axilivo_seed_snapshots`

---

⚡ Quick Example: Seeder file
----------------------------

[](#-quick-example-seeder-file)

A generated Seeder file looks like:

```
