the browser-facing portion of osu!
at master 27 lines 786 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\Artist; 11 12class ArtistFactory extends Factory 13{ 14 protected $model = Artist::class; 15 16 public function definition(): array 17 { 18 return [ 19 'name' => fn() => "{$this->faker->lastName()} {$this->faker->colorName()}", 20 'description' => fn() => $this->faker->realText(), 21 'website' => fn() => $this->faker->safeEmailDomain(), 22 'cover_url' => '/images/headers/generic.jpg', 23 'header_url' => '/images/headers/generic.jpg', 24 'visible' => 1, 25 ]; 26 } 27}