Files
growup-crm/database/seeders/SuperAdminSeeder.php
Cauê Faleiros afdda2dab0
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 2m38s
Fix: Add central users table and correct login redirection
- Copy users and roles migrations to central database context
- Redirect central domain root to /admin/login
- Fix SuperAdminSeeder to include required role_id
2026-02-03 16:39:35 -03:00

25 lines
572 B
PHP

<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Hash;
use Webkul\User\Models\User;
class SuperAdminSeeder extends Seeder
{
public function run()
{
// Ensure standard admin role exists if needed, but for now just create user
User::firstOrCreate(
['email' => 'admin@example.com'],
[
'name' => 'Super Admin',
'password' => Hash::make('admin123'),
'status' => 1,
'role_id' => 1,
]
);
}
}