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\Language;
9
10class LanguageFactory extends Factory
11{
12 protected $model = Language::class;
13
14 public function definition(): array
15 {
16 return [
17 // 'name' is varchar(50) and some generated strings are longer than that
18 'name' => fn () => substr($this->faker->country(), 0, 50),
19 ];
20 }
21}