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