adrema/database/seeders/UserSeeder.php

26 lines
518 B
PHP
Raw Permalink Normal View History

2020-04-10 20:32:12 +02:00
<?php
2022-08-30 15:27:49 +02:00
namespace Database\Seeders;
2022-02-12 00:41:52 +01:00
use App\User;
2020-04-10 20:32:12 +02:00
use Illuminate\Database\Seeder;
2022-08-30 15:27:49 +02:00
use Illuminate\Support\Facades\Hash;
2020-04-10 20:32:12 +02:00
class UserSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
2023-05-15 19:48:37 +02:00
User::create([
2023-08-07 21:32:56 +02:00
'email' => env('USER_EMAIL', 'admin@example.com'),
2020-04-10 20:32:12 +02:00
'email_verified_at' => now(),
2023-08-07 21:32:56 +02:00
'password' => Hash::make(env('USER_PASSWORD', 'admin')),
2023-05-15 19:48:37 +02:00
'name' => 'Adrema Benutzer',
2020-04-10 20:32:12 +02:00
]);
}
}