ldc-com-app-bo/database/factories/DirectoryFactory.php
Vincent BRIDIER 777d3e0e86 Multiple fix
2023-07-13 08:34:54 +00:00

39 lines
890 B
PHP

<?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,
],
'directory_id' => null,
'needAuthorization' => $this->faker->boolean(50),
'is_system' => 0,
];
}
}