PHP code example of axilivo / seedvault

1. Go to this page and download the library: Download axilivo/seedvault library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

axilivo / seedvault example snippets




namespace Database\Seeders;

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

class AllTableDataSeeder_2025_07_11_153000 extends Seeder
{
    public function run(): void
    {
        DB::table('your_table')->truncate();
        DB::table('your_table')->insert([
            // Your data snapshot
        ]);
    }
}
bash
php artisan migrate
bash
    php artisan seedvault:snapshot
    
bash
    php artisan db:seed --class=Database\\Seeders\\AllTableDataSeeder_YYYY_MM_DD_HHMMSS