Files
pos_heidiver/database/factories/CategoriaFactory.php
T
2026-01-06 15:35:59 -05:00

29 lines
570 B
PHP

<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
use App\Models\Categoria;
class CategoriaFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Categoria::class;
/**
* Define the model's default state.
*/
public function definition(): array
{
return [
'nombre' => fake()->regexify('[A-Za-z0-9]{255}'),
'descripcion' => fake()->text(),
];
}
}