30 lines
658 B
PHP
30 lines
658 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Project;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
use Illuminate\Support\Str;
|
|
|
|
/**
|
|
* @extends Factory<Project>
|
|
*/
|
|
class ProjectFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'name' => Str::title(fake()->unique()->words(asText: true)),
|
|
'key' => Str::upper(fake()->unique()->lexify('?????')),
|
|
'show_author' => true,
|
|
'show_story_points' => true,
|
|
'template_overrides' => [],
|
|
];
|
|
}
|
|
}
|