Files
DredgeTours/database/factories/TourDayFactory.php
2025-09-18 17:41:24 +10:00

23 lines
577 B
PHP

<?php
namespace Database\Factories;
use App\Models\Tour;
use App\Models\TourDay;
use Illuminate\Database\Eloquent\Factories\Factory;
class TourDayFactory extends Factory
{
protected $model = TourDay::class;
public function definition(): array
{
return [
'tour_id' => Tour::whereInternalName('hebei_harmony')->first()->id,
'description' => $this->faker->sentence(),
'content' => $this->faker->paragraphs(3, true),
'image' => $this->faker->imageUrl(800, 600, 'travel', true, 'Tour Day'),
];
}
}