first upload all files
This commit is contained in:
12
Modules/Category/Database/Factories/ModelFactory.php
Normal file
12
Modules/Category/Database/Factories/ModelFactory.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
use Modules\Category\Entities\Category;
|
||||
|
||||
$factory->define(Category::class, function (Faker\Generator $faker) {
|
||||
return [
|
||||
'name' => $faker->word(),
|
||||
'slug' => $faker->slug(),
|
||||
'on_navigation' => $faker->boolean(),
|
||||
'is_active' => $faker->boolean(),
|
||||
];
|
||||
});
|
||||
Reference in New Issue
Block a user