the browser-facing portion of osu!
at master 779 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\BeatmapPack; 11 12class BeatmapPackFactory extends Factory 13{ 14 protected $model = BeatmapPack::class; 15 16 public function definition(): array 17 { 18 return [ 19 'author' => fn () => $this->faker->username(), 20 'date' => fn () => now()->subMonths(2), 21 'name' => fn () => $this->faker->catchPhrase(), 22 'tag' => fn () => $this->faker->randomElement(['S', 'T', 'A', 'R']).$this->faker->numberBetween(10, 100), 23 'url' => fn () => $this->faker->url(), 24 ]; 25 } 26}