ldc-startcoq/database/factories/ProductCommentFactory.php

36 lines
732 B
PHP
Raw Permalink Normal View History

2023-02-23 16:23:00 +01:00
<?php
namespace Database\Factories;
use App\Models\ProductComment;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends Factory<\App\Models\ProductComment>
*/
final class ProductCommentFactory extends Factory
{
/**
2023-06-21 10:24:56 +00:00
* The name of the factory's corresponding model.
*
* @var string
*/
2023-02-23 16:23:00 +01:00
protected $model = ProductComment::class;
/**
2023-06-21 10:24:56 +00:00
* Define the model's default state.
*
* @return array
*/
2023-02-23 16:23:00 +01:00
public function definition(): array
{
return [
2023-06-21 10:24:56 +00:00
'evaluation' => fake()->text,
'aspect' => fake()->text,
'taste' => fake()->text,
'odor' => fake()->text,
'texture' => fake()->text,
2023-02-23 16:23:00 +01:00
];
}
}