HEX
Server: Apache/2.4.41 (Amazon) OpenSSL/1.0.2k-fips PHP/5.6.40
System: Linux ip-172-31-40-18 4.14.146-93.123.amzn1.x86_64 #1 SMP Tue Sep 24 00:45:23 UTC 2019 x86_64
User: apache (48)
PHP: 5.6.40
Disabled: NONE
Upload Files
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(),
            ],
        ]);
    }
}