koel/database/factories/SettingFactory.php

21 lines
392 B
PHP
Raw Normal View History

<?php
namespace Database\Factories;
use App\Models\Setting;
use Illuminate\Database\Eloquent\Factories\Factory;
class SettingFactory extends Factory
{
protected $model = Setting::class;
2020-12-22 20:11:22 +00:00
/** @return array<mixed> */
public function definition(): array
{
return [
'key' => $this->faker->slug,
'value' => $this->faker->name,
];
}
}