pai-sklep/database/factories/ProductFactory.php
2021-10-28 11:19:42 +02:00

31 lines
639 B
PHP

<?php
namespace Database\Factories;
use App\Models\Product;
use Illuminate\Database\Eloquent\Factories\Factory;
use illuminate\support\str;
class ProductFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Product::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'uuid' => $this->faker->unique()->uuid(),
'name' => $this->faker->productName(),
'description' => $this->faker->text(10000),
];
}
}