PHP code example of b61 / seeders

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

    

b61 / seeders example snippets

 
use ActivismBe\Seeders\DatabaseSeeder as BaseDatabaseSeeder;
use ActivismBe\Seeders\AclTableSeeder;

class DatabaseSeeder extends BaseDatabaseSeeder
{
    /**
     * Handle the database seed. 
     *
     * @return void
     */
    public function run(): void 
    {
        parent::run();
        $this->call(AclTableSeeder::class); // Out of the box ACL seeder for the database.
    }
}

$ php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider" --tag="migrations"
$ php artisan migrate