the browser-facing portion of osu!
at master 636 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\UserMonthlyPlaycount; 11 12class UserMonthlyPlaycountFactory extends Factory 13{ 14 protected $model = UserMonthlyPlaycount::class; 15 16 public function definition(): array 17 { 18 return [ 19 'playcount' => fn () => $this->faker->numberBetween(500, 2000), 20 'year_month' => fn () => $this->faker->dateTimeBetween('-6 years')->format('ym'), 21 ]; 22 } 23}