diff --git a/packages/Webkul/Admin/src/Database/Seeders/DatabaseSeeder.php b/packages/Webkul/Admin/src/Database/Seeders/DatabaseSeeder.php
index 3f28f5ddb..dbdaed761 100755
--- a/packages/Webkul/Admin/src/Database/Seeders/DatabaseSeeder.php
+++ b/packages/Webkul/Admin/src/Database/Seeders/DatabaseSeeder.php
@@ -9,6 +9,7 @@ use Webkul\Core\Database\Seeders\DatabaseSeeder as CoreSeeder;
use Webkul\User\Database\Seeders\DatabaseSeeder as UserSeeder;
use Webkul\Customer\Database\Seeders\DatabaseSeeder as CustomerSeeder;
use Webkul\Inventory\Database\Seeders\DatabaseSeeder as InventorySeeder;
+use Webkul\CMS\Database\Seeders\DatabaseSeeder as CMSSeeder;
class DatabaseSeeder extends Seeder
{
@@ -25,5 +26,6 @@ class DatabaseSeeder extends Seeder
$this->call(AttributeSeeder::class);
$this->call(UserSeeder::class);
$this->call(CustomerSeeder::class);
+ $this->call(CMSSeeder::class);
}
-}
+}
\ No newline at end of file
diff --git a/packages/Webkul/CMS/src/Database/Seeders/CMSPagesTableSeeder.php b/packages/Webkul/CMS/src/Database/Seeders/CMSPagesTableSeeder.php
new file mode 100644
index 000000000..a5b0c9803
--- /dev/null
+++ b/packages/Webkul/CMS/src/Database/Seeders/CMSPagesTableSeeder.php
@@ -0,0 +1,114 @@
+delete();
+
+ DB::table('cms_pages')->insert([
+ [
+ 'id' => '1',
+ 'url_key' => 'about-us',
+ 'html_content' => '
+
About us page content
+
',
+ 'page_title' => 'About Us',
+ 'meta_title' => 'about us',
+ 'meta_description' => '',
+ 'meta_keywords' => 'aboutus',
+ 'content' => '{"html": "\r\n
About us page content
\r\n
",
+ "meta_title": "about us",
+ "page_title": "About Us",
+ "meta_keywords": "aboutus ", "meta_description": ""}',
+ 'channel_id' => 1,
+ 'locale_id' => 1
+ ], [
+ 'id' => '2',
+ 'url_key' => 'return-policy',
+ 'html_content' => '
+
Return policy page content
+
',
+ 'page_title' => 'Return Policy',
+ 'meta_title' => 'return policy',
+ 'meta_description' => '',
+ 'meta_keywords' => 'return, policy',
+ 'content' => '{"html": "\r\n
Return policy page content
\r\n
",
+ "meta_title": "return policy",
+ "page_title": "Return Policy",
+ "meta_keywords": "return, policy ", "meta_description": ""}',
+ 'channel_id' => 1,
+ 'locale_id' => 1
+ ], [
+ 'id' => '3',
+ 'url_key' => 'refund-policy',
+ 'html_content' => '
+
Refund policy page content
+
',
+ 'page_title' => 'Refund Policy',
+ 'meta_title' => 'Refund policy',
+ 'meta_description' => '',
+ 'meta_keywords' => 'refund, policy',
+ 'content' => '{"html": "\r\n
Refund policy page content
\r\n
",
+ "meta_title": "Refund policy",
+ "page_title": "Refund Policy",
+ "meta_keywords": "refund,policy ", "meta_description": ""}',
+ 'channel_id' => 1,
+ 'locale_id' => 1
+ ], [
+ 'id' => '4',
+ 'url_key' => 'terms-conditions',
+ 'html_content' => '
+
Terms & conditions page content
+
',
+ 'page_title' => 'Terms & Conditions',
+ 'meta_title' => 'Terms & Conditions',
+ 'meta_description' => '',
+ 'meta_keywords' => 'term, conditions',
+ 'content' => '{"html": "\r\n
Terms & conditions page content
\r\n
",
+ "meta_title": "Terms & Conditions",
+ "page_title": "Terms & Conditions",
+ "meta_keywords": "terms, conditions ", "meta_description": ""}',
+ 'channel_id' => 1,
+ 'locale_id' => 1
+ ], [
+ 'id' => '5',
+ 'url_key' => 'terms-of-use',
+ 'html_content' => '
+
Terms of use page content
+
',
+ 'page_title' => 'Terms of use',
+ 'meta_title' => 'Terms of use',
+ 'meta_description' => '',
+ 'meta_keywords' => 'term, use',
+ 'content' => '{"html": "\r\n
Terms of use page content
\r\n
",
+ "meta_title": "Terms of use",
+ "page_title": "Terms of use",
+ "meta_keywords": "terms, use ", "meta_description": ""}',
+ 'channel_id' => 1,
+ 'locale_id' => 1
+ ], [
+ 'id' => '6',
+ 'url_key' => 'contact-us',
+ 'html_content' => '
+
Contact us page content
+
',
+ 'page_title' => 'Contact Us',
+ 'meta_title' => 'Contact Us',
+ 'meta_description' => '',
+ 'meta_keywords' => 'contact, us',
+ 'content' => '{"html": "\r\n
Contact us page content
\r\n
",
+ "meta_title": "Contact Us",
+ "page_title": "Contact Us",
+ "meta_keywords": "contact, us ", "meta_description": ""}',
+ 'channel_id' => 1,
+ 'locale_id' => 1
+ ]
+ ]);
+ }
+}
\ No newline at end of file
diff --git a/packages/Webkul/CMS/src/Database/Seeders/DatabaseSeeder.php b/packages/Webkul/CMS/src/Database/Seeders/DatabaseSeeder.php
new file mode 100644
index 000000000..3111413dd
--- /dev/null
+++ b/packages/Webkul/CMS/src/Database/Seeders/DatabaseSeeder.php
@@ -0,0 +1,18 @@
+call(CMSPagesTableSeeder::class);
+ }
+}
\ No newline at end of file
diff --git a/packages/Webkul/Core/src/Database/Seeders/ChannelTableSeeder.php b/packages/Webkul/Core/src/Database/Seeders/ChannelTableSeeder.php
index cef99543a..9e8fdeba1 100755
--- a/packages/Webkul/Core/src/Database/Seeders/ChannelTableSeeder.php
+++ b/packages/Webkul/Core/src/Database/Seeders/ChannelTableSeeder.php
@@ -17,7 +17,7 @@ class ChannelTableSeeder extends Seeder
'name' => 'Default',
'root_category_id' => 1,
'home_page_content' => '@include("shop::home.slider") @include("shop::home.featured-products") @include("shop::home.new-products")
',
- 'footer_content' => '',
+ 'footer_content' => '',
'name' => 'Default',
'default_locale_id' => 1,
'base_currency_id' => 1
@@ -27,7 +27,7 @@ class ChannelTableSeeder extends Seeder
'channel_id' => 1,
'currency_id' => 1,
]);
-
+
DB::table('channel_locales')->insert([
'channel_id' => 1,
'locale_id' => 1,