PHP code example of helios-live / reseedr

1. Go to this page and download the library: Download helios-live/reseedr 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/ */

    

helios-live / reseedr example snippets


// if no options are given to the call, the seeder scans the
// database/dumps/ directory for php files and uses that
// however the ordering might not be what you need
$this->call(\HeliosLive\Reseeder\Seeders\ReSeed::class);

// if given the tables option, it will only reseed those tables, in the 
// specified order
$this->call(\HeliosLive\Reseeder\Seeders\ReSeed::class,
true,
[
    'tables' => ['users', 'terms'],
]);

bash
composer reseedr:export-table users
php artisan reseedr:export-table terms