*/ 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, ]; } }