Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (35 sloc) 951 Bytes
<?php
use App\Models\Auth\User;
use Illuminate\Database\Seeder;
/**
* Class UserTableSeeder.
*/
class UserTableSeeder extends Seeder
{
use DisableForeignKeys;
/**
* Run the database seed.
*/
public function run()
{
$this->disableForeignKeys();
// Add the master administrator, user id of 1
User::create([
'first_name' => 'Super',
'last_name' => 'Admin',
'email' => 'admin@admin.com',
'password' => 'secret',
'confirmation_code' => md5(uniqid(mt_rand(), true)),
'confirmed' => true,
]);
User::create([
'first_name' => 'Default',
'last_name' => 'User',
'email' => 'user@user.com',
'password' => 'secret',
'confirmation_code' => md5(uniqid(mt_rand(), true)),
'confirmed' => true,
]);
$this->enableForeignKeys();
}
}
You can’t perform that action at this time.