46 lines
1.0 KiB
PHP
46 lines
1.0 KiB
PHP
<?php
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use Illuminate\Support\Facades\DB;
|
|
use App\Libraries\UuidHelper;
|
|
|
|
class CodeFuelTypeTableSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
DB::table('code_fuel_type')->truncate();
|
|
|
|
$uuid = new UuidHelper;
|
|
|
|
$data = array(
|
|
array(
|
|
'fueltype_uuid' => $uuid->generate_uuid1(),
|
|
'code' => "1",
|
|
'description' => "GASOLINE 97",
|
|
),
|
|
array(
|
|
'fueltype_uuid' => $uuid->generate_uuid1(),
|
|
'code' => "2",
|
|
'description' => "GASOLINE 95",
|
|
),
|
|
array(
|
|
'fueltype_uuid' => $uuid->generate_uuid1(),
|
|
'code' => "3",
|
|
'description' => "GASOLINE 91",
|
|
),
|
|
array(
|
|
'fueltype_uuid' => $uuid->generate_uuid1(),
|
|
'code' => "4",
|
|
'description' => "DIESEL",
|
|
)
|
|
);
|
|
|
|
DB::table('code_fuel_type')->insert($data);
|
|
}
|
|
}
|