Create events factory

This commit is contained in:
Quentin T'JAMPENS
2025-10-27 23:13:52 +01:00
parent 8e3f189e77
commit 86b7996d75
3 changed files with 29 additions and 2 deletions
+24
View File
@@ -0,0 +1,24 @@
<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Events>
*/
class EventsFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'name' => $this->faker->text(15),
'description' => $this->faker->text(50),
];
}
}