update code
This commit is contained in:
11
database/factories/DocumentFactory.php
Normal file
11
database/factories/DocumentFactory.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
/** @var \Illuminate\Database\Eloquent\Factory $factory */
|
||||
|
||||
use App\Entities\Document;
|
||||
use Faker\Generator as Faker;
|
||||
|
||||
$factory->define(Document::class, function (Faker $faker) {
|
||||
$faker->addProvider(new App\Fakers\AbstractDocumentFacker($faker));
|
||||
return $faker->document();
|
||||
});
|
||||
Reference in New Issue
Block a user