Files
Cybrarist 556f6bb9d7 - finish group feature
- add group tests
- preparing for group history

Took 6 hours 16 minutes
2025-02-07 22:29:32 +04:00

29 lines
810 B
PHP

<?php
namespace Database\Factories;
use App\Models\Product;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Carbon;
class ProductFactory extends Factory
{
protected $model = Product::class;
public function definition(): array
{
return [
'created_at' => Carbon::now(),
'updated_at' => Carbon::now(),
'name' => $this->faker->name(),
'image' => $this->faker->word(),
'favourite' => $this->faker->boolean(),
'stock' => $this->faker->boolean(),
'snoozed_until' => Carbon::now(),
'max_notifications' => $this->faker->randomNumber(),
'lowest_within' => $this->faker->randomNumber(),
'only_official' => $this->faker->boolean(),
];
}
}