the browser-facing portion of osu!
at master 26 lines 690 B view raw
1<?php 2 3// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0. 4// See the LICENCE file in the repository root for full licence text. 5 6declare(strict_types=1); 7 8namespace Database\Factories; 9 10use App\Models\ContestEntry; 11use App\Models\User; 12 13class ContestEntryFactory extends Factory 14{ 15 protected $model = ContestEntry::class; 16 17 public function definition(): array 18 { 19 return [ 20 'user_id' => User::factory(), 21 'entry_url' => '/images/headers/generic.jpg', 22 'name' => fn() => $this->faker->words(3, true), 23 'masked_name' => fn() => $this->faker->words(3, true), 24 ]; 25 } 26}