fully working now

This commit is contained in:
2025-05-07 15:11:58 +05:45
parent 12e3d4a2f0
commit 50258a116a
20 changed files with 574 additions and 80 deletions

View File

@ -0,0 +1,19 @@
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use App\Models\User;
use Illuminate\Support\Facades\Hash;
class AdminUserSeeder extends Seeder
{
public function run(): void
{
User::firstOrCreate([
'email' => 'admin@admin.com'
], [
'name' => 'Admin',
'password' => Hash::make('password')
]);
}
}