1. Go to this page and download the library: Download aerni/factory 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/ */
aerni / factory example snippets
return [
/*
|--------------------------------------------------------------------------
| Publish Status
|--------------------------------------------------------------------------
|
| The publish status of collection entries and taxonomy terms
| created by the factory.
|
| Tip: Randomize the status by setting this to '(bool) random_int(0, 1)'.
|
*/
'published' => true,
/*
|--------------------------------------------------------------------------
| Title Fallback Settings
|--------------------------------------------------------------------------
|
| These title settings will function as a fallback to create titles for
| your collection entries and taxonomy terms, if you didn't explicitly set
| a 'title' field in the respective blueprint.
|
| 'chars': The character count of the title will be in this range.
| 'real_text': Use real english words instead of Lorem Ipsum.
|
*/
'title' => [
'chars' => [$min = 20, $max = 30],
'real_text' => true,
],
];