PHP code example of naoray / laravel-factory-prefill
1. Go to this page and download the library: Download naoray/laravel-factory-prefill 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/ */
naoray / laravel-factory-prefill example snippets
use Faker\Generator as Faker;
$factory->define(Model::class, function (Faker $faker) {
return [
//
];
});