*/ class DocumentacionClienteFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protected $model = DocumentacionCliente::class; /** * Define the model's default state. * * @return array */ public function definition(): array { $extension = $this->faker->randomElement(['pdf', 'jpg', 'png']); $nombre = $this->faker->word(); return [ 'nombre' => $nombre, 'mime_type' => $this->faker->mimeType(), 'tamanio_bytes' => $this->faker->numberBetween(1024, 10_485_760), 'extension' => $extension, 'cliente_id' => Cliente::factory(), 'profesional_id' => Profesional::factory(), ]; } }