add: full multi-tenancy control

This commit is contained in:
Cauê Faleiros
2026-02-02 15:31:15 -03:00
commit c6ec92802b
1711 changed files with 258106 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<?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, // Skip role_id if strictly checking email
]
);
}
}