- Added standard Laravel directory structure and configuration. - Included Svelte and Tailwind configuration for the admin interface. - Added core PHPUnit and testing scripts.
29 lines
648 B
PHP
29 lines
648 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Page>
|
|
*/
|
|
class PageFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'title' => $this->faker->sentence,
|
|
'slug' => $this->faker->unique()->slug,
|
|
'content' => [],
|
|
'cached_html' => null,
|
|
'is_published' => true,
|
|
'user_id' => \App\Models\User::factory(),
|
|
];
|
|
}
|
|
}
|