76 lines
2.0 KiB
PHP
Executable File
76 lines
2.0 KiB
PHP
Executable File
<?php
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use Illuminate\Support\Facades\DB;
|
|
use App\Libraries\UuidHelper;
|
|
use Faker\Factory as Faker;
|
|
|
|
class SystemPreferenceTableSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
DB::table('system_preferences')->truncate();
|
|
|
|
$uuid = new UuidHelper;
|
|
$faker = Faker::create();
|
|
|
|
|
|
|
|
$data = array(
|
|
|
|
array(
|
|
'sp_uuid'=> $uuid->generate_uuid1(),
|
|
'name'=> "logo",
|
|
'value'=> ""
|
|
),
|
|
array(
|
|
'sp_uuid'=> $uuid->generate_uuid1(),
|
|
'name'=> "gps",
|
|
'value'=> 2000
|
|
),
|
|
array(
|
|
'sp_uuid'=> $uuid->generate_uuid1(),
|
|
'name'=> "contact_email_address_mobile",
|
|
'value'=> "sample@email.com"
|
|
),
|
|
array(
|
|
'sp_uuid'=> $uuid->generate_uuid1(),
|
|
'name'=> "contact_number_mobile",
|
|
'value'=> "09159999999"
|
|
),
|
|
array(
|
|
'sp_uuid'=> $uuid->generate_uuid1(),
|
|
'name'=> "contact_details",
|
|
'value'=> "sample"
|
|
),
|
|
array(
|
|
'sp_uuid'=> $uuid->generate_uuid1(),
|
|
'name'=> "who_we_are_content",
|
|
'value'=> ""
|
|
),
|
|
array(
|
|
'sp_uuid'=> $uuid->generate_uuid1(),
|
|
'name'=> "what_we_do_content",
|
|
'value'=> ""
|
|
),
|
|
array(
|
|
'sp_uuid'=> $uuid->generate_uuid1(),
|
|
'name'=> "why_unioil_content",
|
|
'value'=> ""
|
|
),
|
|
array(
|
|
'sp_uuid'=> $uuid->generate_uuid1(),
|
|
'name'=> "information_guide_details",
|
|
'value'=> ""
|
|
)
|
|
);
|
|
|
|
DB::table('system_preferences')->insert($data);
|
|
}
|
|
}
|