PHP code example of danilowa / laravel-factory-seeder-generator
1. Go to this page and download the library: Download danilowa/laravel-factory-seeder-generator 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/ */
danilowa / laravel-factory-seeder-generator example snippets
'custom_attributes_active' => true,
'custom_attributes_priority' => false,
'custom_attributes' => [
'price' => '$this->faker->randomFloat(2, 1, 1000)',
'username' => '$this->faker->userName',
],
'
'custom_seeder_count' => 10,
'enable_logging' => false,
bash
php artisan vendor:publish --provider="Danilowa\LaravelFactorySeederGenerator\Providers\FactorySeederGeneratorServiceProvider"