Files
2025-10-07 18:48:04 +02:00

33 lines
799 B
PHP

<?php
namespace Database\Seeders;
use App\Models\User;
// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Hash;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*/
public function run(): void
{
// Call the SettingsSeeder to create initial application settings
$this->call([
SettingsSeeder::class,
]);
// Create admin user with specified credentials
User::updateOrCreate(
['email' => 'bennY@fiet-service.nl'],
[
'name' => 'Marijke & Benny',
'email' => 'Admin@fiet-service.nl',
'password' => Hash::make('B3nny4B1k'),
]
);
}
}