motorradig/motorradig/database/seeds/BookingSeeder.php

71 lines
1.9 KiB
PHP
Raw Normal View History

2020-10-01 09:40:16 +02:00
<?php
use Illuminate\Database\Seeder;
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,
'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,
'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,
'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,
'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,
'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,
'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,
'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,
'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,
'tour_id' => 3,
'created_at' => Carbon::now(),
'updated_at' => Carbon::now(),
2020-10-01 09:40:16 +02:00
]);
}
}