mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-09-24 13:26:07 +02:00
* feat(admin): add settings to override config values * style: fix StyleCI findings * refactor: use model constants in migration
40 lines
780 B
PHP
40 lines
780 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Database\Factories\Admin;
|
|
|
|
use App\Models\Admin\Setting;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* Class SettingFactory.
|
|
*
|
|
* @method Setting createOne($attributes = [])
|
|
* @method Setting makeOne($attributes = [])
|
|
*
|
|
* @extends Factory<Setting>
|
|
*/
|
|
class SettingFactory extends Factory
|
|
{
|
|
/**
|
|
* The name of the factory's corresponding model.
|
|
*
|
|
* @var class-string<Setting>
|
|
*/
|
|
protected $model = Setting::class;
|
|
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
Setting::ATTRIBUTE_KEY => fake()->slug(),
|
|
Setting::ATTRIBUTE_VALUE => fake()->word(),
|
|
];
|
|
}
|
|
}
|