first commit

This commit is contained in:
Doar Mihai
2026-08-08 18:03:29 +03:00
commit df2128ebff
183 changed files with 18719 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
<?php
namespace Database\Factories;
use App\Models\Page;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
/**
* @extends Factory<Page>
*/
class PageFactory extends Factory
{
/**
* @return array<string, mixed>
*/
public function definition(): array
{
$title = fake()->unique()->words(2, true);
return [
'title' => Str::title($title),
'slug' => Str::slug($title),
'body' => implode("\n\n", fake()->paragraphs(3)),
'published' => true,
'show_in_footer' => true,
'order' => 0,
];
}
}