芝麻web文件管理V1.00
编辑当前文件:/home/digitalh/yeahea.digitalhubbd.com/database/seeders/SystemsSeeder.php
insert([ // 'maintenance_mode' => 1, 'install_verion' => \App\Models\System::VERSION, 'name' => 'zCart', 'legal_name' => 'Zcart Inc.', 'email' => 'notify@demo.com', // 'description' => 'Etc marketplace.', 'support_phone' => '(+1) 84382648364', 'support_email' => 'help.incevio@gmail.com', 'is_multi_vendor' => 1, // 'date_format' => 'YYYY-MM-DD', // 'date_separator' => '-', // 'time_format' => '12h', // 'time_separator' => ':', 'timezone_id' => '35', 'currency_id' => 148, 'length_unit' => 'cm', 'weight_unit' => 'gm', 'valume_unit' => 'liter', // 'currency_format' => 'x,xxx.xx', 'show_currency_symbol' => 1, 'show_space_after_symbol' => 0, 'google_analytic_report' => 0, 'allow_guest_checkout' => 1, 'active_theme' => 'default', // Temoporary for dev 'required_card_upfront' => null, 'trial_days' => 13, // Vendot Defults // 'merchant_can_create_category_group' => null, // 'merchant_can_create_category_sub_group' => null, // 'merchant_can_create_category' => null, // 'merchant_can_create_attribute' => null, // 'merchant_can_create_attribute_value' => 1, // 'merchant_can_create_manufacturer' => 1, // 'merchant_can_create_product' => 1, // 'merchant_can_have_own_user_roles' => 1, // 'merchant_can_have_own_carriers' => 1, // 'merchant_can_have_own_gift_cards' => 1, // Social media 'facebook_link' => 'https://www.facebook.com/', 'twitter_link' => 'https://twitter.com/', 'google_plus_link' => 'https://plus.google.com/', 'pinterest_link' => 'https://www.pinterest.com/', 'instagram_link' => 'https://www.instagram.com/', 'youtube_link' => 'https://www.youtube.com/', // Address Defults 'address_show_map' => 1, 'address_default_country' => 840, //Country id 'address_default_state' => 453, //State id 'address_show_country' => 1, 'created_at' => Carbon::Now(), 'updated_at' => Carbon::Now(), ]); $country_id = DB::table('countries')->inRandomOrder()->first()->id; $state = DB::table('states')->where('country_id', $country_id)->first(); DB::table('addresses')->insert([ 'address_type' => 'Primary', 'address_line_1' => 'Platform Address', 'state_id' => $state ? $state->id : null, 'zip_code' => 63585, 'country_id' => $country_id, 'city' => 'Hollywood', 'addressable_id' => 1, 'addressable_type' => \App\Models\System::class, 'created_at' => Carbon::Now(), 'updated_at' => Carbon::Now(), ]); } }