the browser-facing portion of osu!
at master 35 lines 862 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 6namespace Database\Factories; 7 8use App\Models\ArtistTrack; 9 10class ArtistTrackFactory extends Factory 11{ 12 /** 13 * The name of the factory's corresponding model. 14 * 15 * @var string 16 */ 17 protected $model = ArtistTrack::class; 18 19 /** 20 * Define the model's default state. 21 * 22 * @return array 23 */ 24 public function definition() 25 { 26 return [ 27 'title' => $this->faker->sentence(3), 28 'genre' => $this->faker->word(), 29 'bpm' => rand(100, 200), 30 'length' => $this->faker->randomNumber(3), 31 'preview' => $this->faker->url(), 32 'osz' => $this->faker->url(), 33 ]; 34 } 35}