PHP code example of asvae / laravel-fixtures

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

    

asvae / laravel-fixtures example snippets


protected $commands = [
    // ...
    
    \Asvae\LaravelFixtures\Commands\FixtureRun::class,
];

$this->runFixture($className); // Runs another fixture.
$this->runArray($className); // Run [nested] array of fixtures

php artisan fixture:run "\Asvae\LaravelFixtures\Examples\FixtureSet"