26 lines
537 B
PHP
26 lines
537 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 UserSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
$user = new User();
|
|
$user->name = 'system';
|
|
$user->email = 'sys@local.host';
|
|
$user->role = 'manage';
|
|
$user->password = Hash::make('system');
|
|
$user->save();
|
|
}
|
|
}
|