mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-11 01:21:23 +03:30
29 lines
681 B
PHP
Executable File
29 lines
681 B
PHP
Executable File
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\User;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Message>
|
|
*/
|
|
class MessageFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'title' => $this->faker->word,
|
|
'text' => $this->faker->word,
|
|
'sender_user_id' => User::factory(),
|
|
'recipient_user_id' => User::factory(),
|
|
'status' => $this->faker->randomElement(['Read', 'UnRead']),
|
|
];
|
|
}
|
|
}
|