Files
UNIT3D-Community-Edition/database/factories/NoteFactory.php
HDVinnie d75bbdc665 Apply fixes from StyleCI
[ci skip] [skip ci]
2021-07-13 00:36:19 +00:00

34 lines
700 B
PHP

<?php
/* @var \Illuminate\Database\Eloquent\Factory $factory */
namespace Database\Factories;
use App\Models\Note;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;
class NoteFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Note::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'user_id' => fn () => User::factory()->create()->id,
'staff_id' => fn () => User::factory()->create()->id,
'message' => $this->faker->text,
];
}
}