2024-10-30 11:55:21 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Database\Factories;
|
|
|
|
|
|
|
|
use App\Models\Quote;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
use Illuminate\Support\Carbon;
|
|
|
|
|
|
|
|
class QuoteFactory extends Factory
|
|
|
|
{
|
|
|
|
protected $model = Quote::class;
|
|
|
|
|
|
|
|
public function definition(): array
|
|
|
|
{
|
|
|
|
return [
|
2025-02-06 13:10:08 -05:00
|
|
|
'date' => today()->subDays(random_int(0, 60)),
|
|
|
|
'notes' => $this->faker->sentence(),
|
2024-10-30 11:55:21 -04:00
|
|
|
'created_at' => Carbon::now(),
|
|
|
|
'updated_at' => Carbon::now(),
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|