2025-06-29 09:37:49 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace Database\Factories;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Article>
|
|
|
|
|
*/
|
|
|
|
|
class ArticleFactory extends Factory
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Define the model's default state.
|
|
|
|
|
*
|
|
|
|
|
* @return array<string, mixed>
|
|
|
|
|
*/
|
|
|
|
|
public function definition(): array
|
|
|
|
|
{
|
|
|
|
|
return [
|
2025-07-06 16:51:09 +02:00
|
|
|
'feed_id' => \App\Models\Feed::factory(),
|
|
|
|
|
'url' => $this->faker->url(),
|
|
|
|
|
'title' => $this->faker->sentence(),
|
|
|
|
|
'description' => $this->faker->paragraph(),
|
|
|
|
|
'is_valid' => null,
|
|
|
|
|
'is_duplicate' => false,
|
|
|
|
|
'validated_at' => null,
|
2025-06-29 09:37:49 +02:00
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
}
|