LinkStack/database/seeders/AdminSeeder.php

33 lines
640 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',
'password' => Hash::make('12345678'),
'role' => 'admin',
'littlelink_name' => 'admin',
'littlelink_description' => 'admin page',
]
];
User::insert($admin);
}
}