Init commit
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?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' => 'admin@fietservice.nl'],
|
||||
[
|
||||
'name' => 'admin',
|
||||
'email' => 'admin@fietservice.nl',
|
||||
'password' => Hash::make('Admin174'),
|
||||
]
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user