2021-06-29 00:27:57 +02:00
|
|
|
<?php
|
|
|
|
|
2023-02-03 20:41:59 +01:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2021-06-29 00:27:57 +02:00
|
|
|
namespace Database\Factories\Engelsystem\Models\User;
|
|
|
|
|
|
|
|
use Engelsystem\Models\User\Settings;
|
2023-10-24 23:00:04 +02:00
|
|
|
use Engelsystem\Models\User\User;
|
2021-06-29 00:27:57 +02:00
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
|
|
|
|
class SettingsFactory extends Factory
|
|
|
|
{
|
|
|
|
/** @var string */
|
2022-12-15 19:50:56 +01:00
|
|
|
protected $model = Settings::class; // phpcs:ignore
|
2021-06-29 00:27:57 +02:00
|
|
|
|
2022-12-14 19:15:20 +01:00
|
|
|
public function definition(): array
|
2021-06-29 00:27:57 +02:00
|
|
|
{
|
|
|
|
return [
|
2023-10-24 23:00:04 +02:00
|
|
|
'user_id' => User::factory(),
|
2021-06-29 00:27:57 +02:00
|
|
|
'language' => $this->faker->locale(),
|
|
|
|
'theme' => $this->faker->numberBetween(1, 20),
|
|
|
|
'email_human' => $this->faker->boolean(),
|
2023-02-26 16:18:16 +01:00
|
|
|
'email_messages' => $this->faker->boolean(),
|
2021-11-30 00:19:44 +01:00
|
|
|
'email_goody' => $this->faker->boolean(),
|
2021-06-29 00:27:57 +02:00
|
|
|
'email_shiftinfo' => $this->faker->boolean(),
|
|
|
|
'email_news' => $this->faker->boolean(),
|
2022-10-16 17:29:34 +02:00
|
|
|
'mobile_show' => $this->faker->boolean(),
|
2021-06-29 00:27:57 +02:00
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|