Initial commit for new repo
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 1m4s

This commit is contained in:
dhanabalan
2025-12-16 17:05:04 +05:30
commit 3f0d529640
862 changed files with 141157 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
<?php
namespace Database\Seeders;
use App\Models\User;
use Hash;
use Illuminate\Database\Seeder;
class UserSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
$user1 = User::updateOrCreate(
['email' => 'dhanabalan.saravanan@cripumps.com'],
[
'name' => 'Dhanabalan S',
'password' => bcrypt('SdHaNa@123'),
'updated_at' => now(),
'created_at' => now()
]
);
$user1->assignRole('Super Admin');
$user2 = User::updateOrCreate(
['email' => 'ranjith@cripumps.com'],
[
'name' => 'Ranjith B',
'password' => bcrypt('Ranjii@5503'),
'updated_at' => now(),
'created_at' => now()
]
);
$user2->assignRole('Super Admin');
// User::factory()->count(5)->create();
}
}