cineflex/database/seeders/UserSeeder.php

27 lines
537 B
PHP
Raw Normal View History

<?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();
}
}