Files

28 lines
599 B
PHP

<?php
namespace Database\Factories;
use App\Models\Tla;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends Factory<Tla>
*/
class TlaFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'acronym' => fake()->word() . ' ' . fake()->word() . ' ' . fake()->word(),
'hint' => fake()->sentence(),
'language' => fake()->randomElement(['hu', 'en']),
'context' => fake()->paragraph(),
];
}
}