add password login

This commit is contained in:
Yisroel Baum 2026-07-31 11:38:05 +03:00
parent 93f5f022e4
commit ebfe147ca4
Signed by: yisroelbaum
GPG key ID: 0FA60884F75520A9
12 changed files with 192 additions and 6 deletions

View file

@ -4,13 +4,20 @@ namespace Database\Seeders;
use App\User\UserModel;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Hash;
class UserSeeder extends Seeder
{
public const string EMAIL = 'user@example.com';
public const string PASSWORD = 'password';
public function run(): void
{
UserModel::firstOrCreate([
'email' => 'user@example.com',
'email' => self::EMAIL,
], [
'password' => Hash::make(self::PASSWORD),
]);
}
}