the browser-facing portion of osu!
at master 556 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\UpdateStream; 11 12class UpdateStreamFactory extends Factory 13{ 14 protected $model = UpdateStream::class; 15 16 public function definition(): array 17 { 18 return [ 19 'name' => $this->faker->colorName(), 20 21 'pretty_name' => fn (array $attr) => $attr['name'], 22 ]; 23 } 24}