2021-06-10 13:17:44 -07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Database\Factories;
|
|
|
|
|
2023-03-20 11:39:27 -07:00
|
|
|
use App\Models\Setting;
|
2021-06-10 13:19:27 -07:00
|
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
2021-06-10 13:17:44 -07:00
|
|
|
|
|
|
|
class SettingFactory extends Factory
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The name of the factory's corresponding model.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
2023-03-20 11:39:27 -07:00
|
|
|
protected $model = Setting::class;
|
2021-06-10 13:17:44 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Define the model's default state.
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function definition()
|
|
|
|
{
|
|
|
|
return [
|
|
|
|
'per_page' => 20,
|
2023-03-16 17:07:46 -07:00
|
|
|
'site_name' => $this->faker->sentence(),
|
2021-06-10 13:17:44 -07:00
|
|
|
'auto_increment_assets' => false,
|
|
|
|
'alert_email' => $this->faker->safeEmail(),
|
|
|
|
'alerts_enabled' => true,
|
|
|
|
'brand' => 1,
|
2023-03-16 17:07:46 -07:00
|
|
|
'default_currency' => $this->faker->currencyCode(),
|
2022-01-12 13:10:29 -08:00
|
|
|
'locale' => 'en',
|
2021-06-10 13:17:44 -07:00
|
|
|
'pwd_secure_min' => 10, // Match web setup
|
|
|
|
'email_domain' => 'test.com',
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|