Files

95 lines
3.4 KiB
PHP
Raw Permalink Normal View History

2026-03-15 17:08:23 +07:00
<?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);
}
}