You've already forked Atomcms-edit
574b5d6e17
feat: add 24 model factories for Help, Shop, Community, Game, User domains - Translate mixed Dutch/English strings in README.md and AlertSettings.php - Add HasFactory trait to 23 models - Create factories for Help (6), Shop (4), Community (5), Game (2), User (7)
24 lines
613 B
PHP
Executable File
24 lines
613 B
PHP
Executable File
<?php
|
|
|
|
namespace Database\Factories\Community\Teams;
|
|
|
|
use App\Models\Community\Teams\WebsiteTeam;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
class WebsiteTeamFactory extends Factory
|
|
{
|
|
protected $model = WebsiteTeam::class;
|
|
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'rank_name' => $this->faker->unique()->jobTitle(),
|
|
'hidden_rank' => false,
|
|
'badge' => $this->faker->word(),
|
|
'job_description' => $this->faker->sentence(),
|
|
'staff_color' => '#327fa8',
|
|
'staff_background' => 'staff-bg.png',
|
|
];
|
|
}
|
|
}
|