Initial commit

This commit is contained in:
root committed 2026-05-09 17:32:17 +02:00
commit 9d73f82529
5575 files changed
+281989

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
<?php
namespace Database\Factories\Articles;
use App\Models\Articles\WebsiteArticle;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;
class WebsiteArticleFactory extends Factory
{
protected $model = WebsiteArticle::class;
public function definition(): array
{
return [
'user_id' => User::factory(),
'title' => $this->faker->sentence(),
'slug' => $this->faker->slug(),
'full_story' => $this->faker->paragraphs(3, true),
'short_story' => $this->faker->sentence(),
'image' => $this->faker->imageUrl(),
];
}
}