Attendize/database/seeds/SettingsSeeder.php

117 lines
5.4 KiB
PHP
Raw Normal View History

2019-10-04 09:56:57 +00:00
<?php
use Illuminate\Database\Seeder;
// composer require laracasts/testdummy
use Laracasts\TestDummy\Factory as TestDummy;
class SettingsSeeder extends Seeder
{
public function run()
{
Schema::disableForeignKeyConstraints();
DB::table('settings')->delete();
Schema::enableForeignKeyConstraints();
DB::table('settings')->insert([
[
'key' => 'contact_email',
'name' => 'Contact form email address',
'description' => 'The email address that all emails will go from.',
'value' => 'admin@bilettm.com',
'field' => '{"name":"value","label":"Value","type":"email"}',
'active' => 1,
],[
'key' => 'phone',
'name' => 'Phone number',
2020-01-06 09:45:48 +00:00
'description' => 'The phone number where customers should call',
2019-10-04 09:56:57 +00:00
'value' => '+(993) 12 60-60-60',
'field' => '{"name":"value","label":"Value","type":"text"}',
'active' => 1,
],[
'key' => 'social_facebook',
'name' => 'Facebook page',
'description' => 'Social facebook address',
'value' => 'facebook.com',
'field' => '{"name":"value","label":"Value","type":"text"}',
'active' => 1,
],[
'key' => 'social_pinterest',
'name' => 'Pinterest page',
'description' => 'Social Pinterest page address',
'value' => 'pinterest.com',
'field' => '{"name":"value","label":"Value","type":"text"}',
'active' => 1,
],[
'key' => 'social_linkedin',
'name' => 'Linkedin page',
'description' => 'Social Linkedin page address',
'value' => 'linkedin.com',
'field' => '{"name":"value","label":"Value","type":"text"}',
'active' => 1,
2020-02-26 11:03:44 +00:00
],[
'key' => 'social_instagram',
'name' => 'Instagram page',
'description' => 'Social Instagram page address',
'value' => 'instagram.com',
'field' => '{"name":"value","label":"Value","type":"text"}',
'active' => 1,
2019-10-04 09:56:57 +00:00
],[
'key' => 'social_twitter',
'name' => 'Twitter page',
'description' => 'Social Twitter page address',
'value' => 'twitter.com',
'field' => '{"name":"value","label":"Value","type":"text"}',
'active' => 1,
2019-12-23 12:43:02 +00:00
],[
2019-12-23 12:59:58 +00:00
'key' => 'ticket_text_title',
'name' => 'Text title on ticket',
'description' => 'Text title that will be printed on tickets',
'value' => 'Uns berin',
'field' => '{"name":"value","label":"Value","type":"text"}',
'active' => 1,
],[ 'key' => 'ticket_text',
2019-12-23 12:43:02 +00:00
'name' => 'Text on ticket',
'description' => 'Text that will be printed on tickets',
2019-12-23 12:59:58 +00:00
'value' => 'Satyn alynan biletlar yzyny gaytarylanok',
2019-12-23 12:43:02 +00:00
'field' => '{"name":"value","label":"Value","type":"text"}',
'active' => 1,
2019-10-04 09:56:57 +00:00
],[
'key' => 'cinema_category_id',
'name' => 'Cinema category Id',
'description' => 'Home page cinema section category id',
'value' => 2,
'field' => '{"name":"value","label":"Value","type":"number"}',
'active' => 1,
],[
'key' => 'theatre_category_id',
'name' => 'Theatre category Id',
'description' => 'Home page theatre section category id',
'value' => 4,
'field' => '{"name":"value","label":"Value","type":"number"}',
'active' => 1,
],[
'key' => 'concert_category_id',
'name' => 'Concert category Id',
'description' => 'Home page concert section category id',
'value' => 5,
'field' => '{"name":"value","label":"Value","type":"number"}',
'active' => 1,
2020-02-26 11:03:44 +00:00
],[
'key' => 'booking_fee_fixed',
'name' => 'Booking fee fixed',
'description' => 'Event ticket booking fee fixed',
'value' => 0,
2020-02-26 11:25:49 +00:00
'field' => '{"name":"value","label":"Value","type":"number","attributes" => ["step" => "any"]}',
2020-02-26 11:03:44 +00:00
'active' => 1,
],[
'key' => 'booking_fee_percentage',
'name' => 'Booking fee percentage',
'description' => 'Event ticket booking fee percentage',
'value' => 0,
2020-02-26 11:25:49 +00:00
'field' => '{"name":"value","label":"Value","type":"number","attributes" => ["step" => "any"],}',
2020-02-26 11:03:44 +00:00
'active' => 1,
2019-10-04 09:56:57 +00:00
],
]);
}
}