Added About Page
This commit is contained in:
22
database/factories/TourDayFactory.php
Normal file
22
database/factories/TourDayFactory.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?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'),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user