ldc-showroom-bo/database/factories/SettingsFactory.php

29 lines
710 B
PHP
Raw Permalink Normal View History

2024-01-05 17:36:16 +01:00
<?php
namespace Database\Factories;
2025-05-20 12:51:38 +02:00
use App\Models\Tenant;
2024-01-05 17:36:16 +01:00
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Settings>
*/
class SettingsFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'sub_title' => fake()->unique()->realText(65),
'footer_phrase' => fake()->unique()->realText(38),
2024-01-05 17:36:16 +01:00
'color' => fake()->unique()->hexColor(),
2024-01-17 12:02:42 +01:00
'home_timeout' => \random_int(20, 100),
2025-05-20 12:51:38 +02:00
'tenant_id' => Tenant::query()->first('id'),
2024-01-05 17:36:16 +01:00
];
}
}