2020-10-01 09:40:16 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
use Illuminate\Database\Seeder;
|
2020-10-12 10:09:54 +02:00
|
|
|
use Carbon\Carbon;
|
2020-10-01 09:40:16 +02:00
|
|
|
class BookingSeeder extends Seeder
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Run the database seeds.
|
|
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
|
|
|
|
public function run()
|
|
|
|
|
{
|
|
|
|
|
DB::table('bookings')->insert([
|
|
|
|
|
'user_id' => 1,
|
2020-10-10 11:34:23 +02:00
|
|
|
'tour_id' => 1,
|
|
|
|
|
'created_at' => Carbon::now(),
|
|
|
|
|
'updated_at' => Carbon::now(),
|
2020-10-01 09:40:16 +02:00
|
|
|
]);
|
|
|
|
|
DB::table('bookings')->insert([
|
|
|
|
|
'user_id' => 2,
|
2020-10-10 11:34:23 +02:00
|
|
|
'tour_id' => 1,
|
|
|
|
|
'created_at' => Carbon::now(),
|
|
|
|
|
'updated_at' => Carbon::now(),
|
2020-10-01 09:40:16 +02:00
|
|
|
]);
|
|
|
|
|
DB::table('bookings')->insert([
|
|
|
|
|
'user_id' => 3,
|
2020-10-10 11:34:23 +02:00
|
|
|
'tour_id' => 1,
|
|
|
|
|
'created_at' => Carbon::now(),
|
|
|
|
|
'updated_at' => Carbon::now(),
|
2020-10-01 09:40:16 +02:00
|
|
|
]);
|
|
|
|
|
DB::table('bookings')->insert([
|
|
|
|
|
'user_id' => 4,
|
2020-10-10 11:34:23 +02:00
|
|
|
'tour_id' => 2,
|
|
|
|
|
'created_at' => Carbon::now(),
|
|
|
|
|
'updated_at' => Carbon::now(),
|
|
|
|
|
]);
|
|
|
|
|
|
|
|
|
|
DB::table('bookings')->insert([
|
2020-10-01 09:40:16 +02:00
|
|
|
'user_id' => 5,
|
2020-10-10 11:34:23 +02:00
|
|
|
'tour_id' => 2,
|
|
|
|
|
'created_at' => Carbon::now(),
|
|
|
|
|
'updated_at' => Carbon::now(),
|
2020-10-01 09:40:16 +02:00
|
|
|
]);
|
|
|
|
|
DB::table('bookings')->insert([
|
|
|
|
|
'user_id' => 2,
|
2020-10-10 11:34:23 +02:00
|
|
|
'tour_id' => 3,
|
|
|
|
|
'created_at' => Carbon::now(),
|
|
|
|
|
'updated_at' => Carbon::now(),
|
2020-10-01 09:40:16 +02:00
|
|
|
]);
|
|
|
|
|
DB::table('bookings')->insert([
|
|
|
|
|
'user_id' => 3,
|
2020-10-10 11:34:23 +02:00
|
|
|
'tour_id' => 3,
|
|
|
|
|
'created_at' => Carbon::now(),
|
|
|
|
|
'updated_at' => Carbon::now(),
|
2020-10-01 09:40:16 +02:00
|
|
|
]);
|
|
|
|
|
DB::table('bookings')->insert([
|
|
|
|
|
'user_id' => 4,
|
2020-10-10 11:34:23 +02:00
|
|
|
'tour_id' => 3,
|
|
|
|
|
'created_at' => Carbon::now(),
|
|
|
|
|
'updated_at' => Carbon::now(),
|
2020-10-01 09:40:16 +02:00
|
|
|
]);
|
|
|
|
|
DB::table('bookings')->insert([
|
|
|
|
|
'user_id' => 6,
|
2020-10-10 11:34:23 +02:00
|
|
|
'tour_id' => 3,
|
|
|
|
|
'created_at' => Carbon::now(),
|
|
|
|
|
'updated_at' => Carbon::now(),
|
2020-10-01 09:40:16 +02:00
|
|
|
]);
|
|
|
|
|
}
|
|
|
|
|
}
|