. Licensed under the GNU Affero General Public License v3.0. // See the LICENCE file in the repository root for full licence text. namespace Database\Factories; use App\Models\NewsPost; class NewsPostFactory extends Factory { protected $model = NewsPost::class; public function definition(): array { return [ 'slug' => fn () => $this->faker->date().'-'.$this->faker->slug(), ]; } }