diff --git a/packages/Webkul/Velocity/src/Database/Seeders/VelocityMetaDataSeeder.php b/packages/Webkul/Velocity/src/Database/Seeders/VelocityMetaDataSeeder.php index 0e2e9368a..f0c1e0f2d 100644 --- a/packages/Webkul/Velocity/src/Database/Seeders/VelocityMetaDataSeeder.php +++ b/packages/Webkul/Velocity/src/Database/Seeders/VelocityMetaDataSeeder.php @@ -2,28 +2,125 @@ namespace Webkul\Velocity\Database\Seeders; -use Illuminate\Support\Facades\DB; +use Carbon\Carbon; use Illuminate\Database\Seeder; +use Illuminate\Support\Facades\DB; class VelocityMetaDataSeeder extends Seeder { public function run() { + $now = Carbon::now(); + DB::table('velocity_meta_data')->delete(); - DB::table('velocity_meta_data')->insert([ - 'id' => 1, - 'locale' => 'en', + DB::table('velocity_meta_data')->insert( + [ + 'id' => 1, + 'locale' => 'en', - 'home_page_content' => "

@include('shop::home.advertisements.advertisement-four')@include('shop::home.featured-products') @include('shop::home.product-policy') @include('shop::home.advertisements.advertisement-three') @include('shop::home.new-products') @include('shop::home.advertisements.advertisement-two')

", - 'footer_left_content' => __('velocity::app.admin.meta-data.footer-left-raw-content'), + 'home_page_content' => "

@include('shop::home.advertisements.advertisement-four')@include('shop::home.featured-products') @include('shop::home.product-policy') @include('shop::home.advertisements.advertisement-three') @include('shop::home.new-products') @include('shop::home.advertisements.advertisement-two')

", + 'footer_left_content' => __('velocity::app.admin.meta-data.footer-left-raw-content'), - 'footer_middle_content' => '
', - 'slider' => 1, + 'footer_middle_content' => '
', + 'slider' => 1, - 'subscription_bar_content' => '
', + 'subscription_bar_content' => '
', - 'product_policy' => '
Free Shipping on Order $20 or More
Product Replace & Return Available
Product Exchange and EMI Available
', + 'product_policy' => '
Free Shipping on Order $20 or More
Product Replace & Return Available
Product Exchange and EMI Available
', + ] + ); + + + DB::table('core_config')->insert([ + [ + 'code' => 'general.content.shop.compare_option', + 'value' => '1', + 'channel_code' => 'default', + 'locale_code' => 'ar', + 'created_at' => $now, + 'updated_at' => $now, + ], + [ + 'code' => 'general.content.shop.compare_option', + 'value' => '1', + 'channel_code' => 'default', + 'locale_code' => 'ar', + 'created_at' => $now, + 'updated_at' => $now, + ], + [ + 'code' => 'general.content.shop.compare_option', + 'value' => '1', + 'channel_code' => 'default', + 'locale_code' => 'de', + 'created_at' => $now, + 'updated_at' => $now, + ], + [ + 'code' => 'general.content.shop.compare_option', + 'value' => '1', + 'channel_code' => 'default', + 'locale_code' => 'es', + 'created_at' => $now, + 'updated_at' => $now, + ], + [ + 'code' => 'general.content.shop.compare_option', + 'value' => '1', + 'channel_code' => 'default', + 'locale_code' => 'fa', + 'created_at' => $now, + 'updated_at' => $now, + ], + [ + 'code' => 'general.content.shop.compare_option', + 'value' => '1', + 'channel_code' => 'default', + 'locale_code' => 'it', + 'created_at' => $now, + 'updated_at' => $now, + ], + [ + 'code' => 'general.content.shop.compare_option', + 'value' => '1', + 'channel_code' => 'default', + 'locale_code' => 'ja', + 'created_at' => $now, + 'updated_at' => $now, + ], + [ + 'code' => 'general.content.shop.compare_option', + 'value' => '1', + 'channel_code' => 'default', + 'locale_code' => 'nl', + 'created_at' => $now, + 'updated_at' => $now, + ], + [ + 'code' => 'general.content.shop.compare_option', + 'value' => '1', + 'channel_code' => 'default', + 'locale_code' => 'pl', + 'created_at' => $now, + 'updated_at' => $now, + ], + [ + 'code' => 'general.content.shop.compare_option', + 'value' => '1', + 'channel_code' => 'default', + 'locale_code' => 'pt_BR', + 'created_at' => $now, + 'updated_at' => $now, + ], + [ + 'code' => 'general.content.shop.compare_option', + 'value' => '1', + 'channel_code' => 'default', + 'locale_code' => 'tr', + 'created_at' => $now, + 'updated_at' => $now, + ], ]); } }