🚀 Hostinger Optimized
🖥️ Server: LiteSpeed
💻 System: Linux s20058.bom1.stableserver.net 5.14.0-611.55.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 15:19:29 EDT 2026 x86_64
👤 User: skhata (1324)
🐘 PHP: 8.4.20
🚫 Disabled: ✨ NONE

💻 Terminal

📁 /home/skhata/chandrasons.com/public
$

📄 DatabaseSeeder.php

📁 Path: /home/skhata/new.chandrapharma.com/database/seeders/DatabaseSeeder.php
📊 Size: 1.01 KB
🔒 Perm: 0644
📝 MIME: text/x-php
<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;

class DatabaseSeeder extends Seeder
{
    /**
     * Seed order MUST follow the migration dependency graph:
     *   1. Roles & Permissions (spatie) — no FK deps
     *   2. Admin user               — needs roles
     *   3. Categories               — no FK deps (self-referential safe with null parent)
     *   4. (Phase 2) Brands, Vendors, Products, etc.
     */
    public function run(): void
    {
        $this->call([
            RolePermissionSeeder::class,
            AdminUserSeeder::class,
            CategorySeeder::class,
            TherapeuticCategorySeeder::class,
            CouponSeeder::class,
            HomepageSettingsSeeder::class,
            MenuSeeder::class,
        ]);

        $this->command->info('');
        $this->command->info('🚀 STP Ecommerce database seeded successfully.');
        $this->command->info('   Admin panel: /admin');
        $this->command->info('   Login: admin@stpecommerce.com / Admin@1234!');
    }
}
← Back📥 Raw✏️ Edit🔒 Chmod
✨ File Manager Magic ✨