LinkStack/database/seeders/AdminSeeder.php

34 lines
702 B
PHP
Raw Normal View History

2021-04-16 01:00:00 +02:00
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Hash;
use App\Models\User;
class AdminSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$admin = [
[
'name' => 'admin',
'email' => 'admin@admin.com',
'email_verified_at' => '0000-00-00 00:00:00',
2021-04-16 01:00:00 +02:00
'password' => Hash::make('12345678'),
'role' => 'admin',
'littlelink_name' => 'admin',
'littlelink_description' => 'admin page',
]
];
User::insert($admin);
}
}