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\NewsPost;
9
10class NewsPostFactory extends Factory
11{
12 protected $model = NewsPost::class;
13
14 public function definition(): array
15 {
16 return [
17 'slug' => fn () => $this->faker->date().'-'.$this->faker->slug(),
18 ];
19 }
20}