22 lines
444 B
PHP
22 lines
444 B
PHP
<?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 [
|
|
'body' => $this->faker->realText(300),
|
|
'created_at' => Carbon::now(),
|
|
'updated_at' => Carbon::now(),
|
|
];
|
|
}
|
|
}
|