ldc-com-app-bo/database/factories/DirectoryFactory.php

40 lines
890 B
PHP
Raw Permalink Normal View History

2023-03-31 15:20:10 +02:00
<?php
namespace Database\Factories;
use App\Models\Directory;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends Factory<\App\Models\Directory>
*/
class DirectoryFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Directory::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'name' => [
"fr" => $this->faker->unique()->word,
"en" => $this->faker->unique()->word,
"de" => $this->faker->unique()->word,
"nl" => $this->faker->unique()->word,
],
2023-04-05 17:20:30 +02:00
'directory_id' => null,
2023-03-31 15:20:10 +02:00
'needAuthorization' => $this->faker->boolean(50),
2023-07-13 08:34:54 +00:00
'is_system' => 0,
2023-03-31 15:20:10 +02:00
];
}
}