completed story 1.1 with QA tests and fixes
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\Timeline;
|
||||
use App\Models\User;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\TimelineUpdate>
|
||||
*/
|
||||
class TimelineUpdateFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'timeline_id' => Timeline::factory(),
|
||||
'admin_id' => User::factory()->admin(),
|
||||
'update_text' => fake()->paragraph(),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user