migrate to gtea from bistbucket
This commit is contained in:
@@ -0,0 +1,94 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Frontend\Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class FrontendDatabaseSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
$this->call(ThemesTableSeeder::class);
|
||||
$this->call(BannerTableSeeder::class);
|
||||
$this->call(AboutUsTableSeeder::class);
|
||||
$this->call(OurHistorySeeder::class);
|
||||
$this->call(FaqQuestionSeeder::class);
|
||||
$this->call(PolicySeeder::class);
|
||||
$this->call(TestimonialTableSeeder::class);
|
||||
$this->call(WhyChooseUsTableSeeder::class);
|
||||
$this->call(ReadyToJoinUsSeeder::class);
|
||||
$this->call(MobileAppSectionSeeder::class);
|
||||
$this->call(CmsSectionsSeeder::class);
|
||||
$this->call(CouponSeeder::class);
|
||||
|
||||
$pages = [
|
||||
[
|
||||
'restaurant_id' => 1,
|
||||
'title' => 'Home',
|
||||
'slug' => 'home',
|
||||
'type' => 'home',
|
||||
'content' => '<p>Home page content</p>',
|
||||
'meta_data' => null,
|
||||
'seo_meta_keywords' => 'home, welcome',
|
||||
'seo_meta_description' => 'This is the home page',
|
||||
'page_status' => 'publish',
|
||||
'page_template' => 'default',
|
||||
'author_id' => 1,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
],
|
||||
[
|
||||
'restaurant_id' => 1,
|
||||
'title' => 'About Us',
|
||||
'slug' => 'about-us',
|
||||
'type' => 'about',
|
||||
'content' => '<p>About us content</p>',
|
||||
'meta_data' => null,
|
||||
'seo_meta_keywords' => 'about, us',
|
||||
'seo_meta_description' => 'Learn more about us',
|
||||
'page_status' => 'publish',
|
||||
'page_template' => 'default',
|
||||
'author_id' => 1,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
],
|
||||
[
|
||||
'restaurant_id' => 1,
|
||||
'title' => 'Mission',
|
||||
'slug' => 'mission',
|
||||
'type' => 'mission',
|
||||
'content' => '<p>Demo College provides quality education to customers...</p>',
|
||||
'meta_data' => null,
|
||||
'seo_meta_keywords' => 'mission, education, customers',
|
||||
'seo_meta_description' => 'Our mission is to provide quality education.',
|
||||
'page_status' => 'publish',
|
||||
'page_template' => 'default',
|
||||
'author_id' => 1,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
],
|
||||
[
|
||||
'restaurant_id' => 1,
|
||||
'title' => 'Vision',
|
||||
'slug' => 'vision',
|
||||
'type' => 'vision',
|
||||
'content' => '<p>Demo College inspires customers to acquire genuine knowledge...</p>',
|
||||
'meta_data' => null,
|
||||
'seo_meta_keywords' => 'vision, education, knowledge',
|
||||
'seo_meta_description' => 'Our vision is to inspire customers with knowledge.',
|
||||
'page_status' => 'publish',
|
||||
'page_template' => 'default',
|
||||
'author_id' => 1,
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
],
|
||||
];
|
||||
|
||||
// Insert pages
|
||||
DB::table('pages')->insert($pages);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user