70 lines
1.9 KiB
PHP
70 lines
1.9 KiB
PHP
<?php
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use Carbon\Carbon;
|
|
class BookingSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
DB::table('bookings')->insert([
|
|
'user_id' => 1,
|
|
'tour_id' => 1,
|
|
'created_at' => Carbon::now(),
|
|
'updated_at' => Carbon::now(),
|
|
]);
|
|
DB::table('bookings')->insert([
|
|
'user_id' => 2,
|
|
'tour_id' => 1,
|
|
'created_at' => Carbon::now(),
|
|
'updated_at' => Carbon::now(),
|
|
]);
|
|
DB::table('bookings')->insert([
|
|
'user_id' => 3,
|
|
'tour_id' => 1,
|
|
'created_at' => Carbon::now(),
|
|
'updated_at' => Carbon::now(),
|
|
]);
|
|
DB::table('bookings')->insert([
|
|
'user_id' => 4,
|
|
'tour_id' => 2,
|
|
'created_at' => Carbon::now(),
|
|
'updated_at' => Carbon::now(),
|
|
]);
|
|
|
|
DB::table('bookings')->insert([
|
|
'user_id' => 5,
|
|
'tour_id' => 2,
|
|
'created_at' => Carbon::now(),
|
|
'updated_at' => Carbon::now(),
|
|
]);
|
|
DB::table('bookings')->insert([
|
|
'user_id' => 2,
|
|
'tour_id' => 3,
|
|
'created_at' => Carbon::now(),
|
|
'updated_at' => Carbon::now(),
|
|
]);
|
|
DB::table('bookings')->insert([
|
|
'user_id' => 3,
|
|
'tour_id' => 3,
|
|
'created_at' => Carbon::now(),
|
|
'updated_at' => Carbon::now(),
|
|
]);
|
|
DB::table('bookings')->insert([
|
|
'user_id' => 4,
|
|
'tour_id' => 3,
|
|
'created_at' => Carbon::now(),
|
|
'updated_at' => Carbon::now(),
|
|
]);
|
|
DB::table('bookings')->insert([
|
|
'user_id' => 6,
|
|
'tour_id' => 3,
|
|
'created_at' => Carbon::now(),
|
|
'updated_at' => Carbon::now(),
|
|
]);
|
|
}
|
|
}
|