File: /var/www/html/punjabcabs/database/seeds/ServiceTypesTableSeeder.php
<?php
use Illuminate\Database\Seeder;
use Carbon\Carbon;
class ServiceTypesTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('service_types')->truncate();
DB::table('service_types')->insert([
[
'name' => 'Sedan',
'provider_name' => 'Driver',
'd_fixed' => 20,
'd_price' => 10,
'd_minute' => 0,
'd_distance' => 1,
'd_waiting' => 1,
'n_fixed' => 20,
'n_price' => 10,
'n_minute' => 0,
'n_distance' => 1,
'n_waiting' => 1,
'calculator' => 'DISTANCE',
'image' => asset('asset/img/cars/sedan.png'),
'created_at' => Carbon::now(),
'updated_at' => Carbon::now(),
],
[
'name' => 'Hatchback',
'provider_name' => 'Driver',
'd_fixed' => 20,
'd_price' => 10,
'd_minute' => 0,
'd_distance' => 1,
'd_waiting' => 1,
'n_fixed' => 20,
'n_price' => 10,
'n_minute' => 0,
'n_distance' => 1,
'n_waiting' => 1,
'calculator' => 'DISTANCE',
'image' => asset('asset/img/cars/hatchback.png'),
'created_at' => Carbon::now(),
'updated_at' => Carbon::now(),
],
[
'name' => 'SUV',
'provider_name' => 'Driver',
'd_fixed' => 20,
'd_price' => 10,
'd_minute' => 0,
'd_distance' => 1,
'd_waiting' => 1,
'n_fixed' => 20,
'n_price' => 10,
'n_minute' => 0,
'n_distance' => 1,
'n_waiting' => 1,
'calculator' => 'DISTANCE',
'image' => asset('asset/img/cars/suv.png'),
'created_at' => Carbon::now(),
'updated_at' => Carbon::now(),
],
[
'name' => 'Limousine',
'provider_name' => 'Driver',
'd_fixed' => 20,
'd_price' => 10,
'd_minute' => 0,
'd_distance' => 1,
'd_waiting' => 1,
'n_fixed' => 20,
'n_price' => 10,
'n_minute' => 0,
'n_distance' => 1,
'n_waiting' => 1,
'calculator' => 'DISTANCE',
'image' => asset('asset/img/cars/limo.png'),
'created_at' => Carbon::now(),
'updated_at' => Carbon::now(),
],
]);
}
}