forked from eatvio/eatvio-infra
29 lines
734 B
PHP
29 lines
734 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
use FakerRestaurant\Provider\en_US\Restaurant;
|
|
use Faker\Generator;
|
|
|
|
/**
|
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\ProductGroup>
|
|
* @property Generator|Restaurant $faker
|
|
*/
|
|
class ProductGroupFactory extends Factory
|
|
{
|
|
/**
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
$faker = \Faker\Factory::create();
|
|
$this->faker->addProvider(new Restaurant($faker));
|
|
|
|
return [
|
|
'name' => 'Product Group' . $this->faker->foodName(),
|
|
'description' => $this->faker->realText($this->faker->numberBetween(100, 200)),
|
|
];
|
|
}
|
|
}
|