migrate template
This commit is contained in:
23
database/factories/TimelineEntryFactory.php
Normal file
23
database/factories/TimelineEntryFactory.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Models\TimelineEntry;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
/**
|
||||
* @extends Factory<TimelineEntry>
|
||||
*/
|
||||
class TimelineEntryFactory extends Factory
|
||||
{
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'year' => fake()->year(),
|
||||
'title' => fake()->sentence(3),
|
||||
'body' => fake()->paragraph(),
|
||||
'icon' => 'history',
|
||||
'sort_order' => fake()->numberBetween(0, 10),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user