adrema/database/seeders/UserSeeder.php

26 lines
477 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([
2020-04-10 20:32:12 +02:00
'email' => 'admin@example.com',
'email_verified_at' => now(),
2022-03-11 20:19:17 +01:00
'password' => Hash::make('admin'),
2023-05-15 19:48:37 +02:00
'name' => 'Adrema Benutzer',
2020-04-10 20:32:12 +02:00
]);
}
}