fix CommentairesHasFactory

This commit is contained in:
Clément
2025-06-10 18:19:05 +02:00
parent 34f507f68e
commit 340365b258
2 changed files with 2 additions and 2 deletions

View File

@@ -0,0 +1,26 @@
<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Commentaire>
*/
class CommentaireFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
public function definition(): array
{
return [
'COM_DATE' => now(),
'COM_CONTENU' => fake()->text(200),
'billet_id' => fake()->numberBetween(1, 10),
'user_id' => fake()->numberBetween(1, 2),
];
}
}