Aknaproff/database/seeders/UsersTableSeeder.php

28 lines
473 B
PHP
Raw Normal View History

2023-09-21 12:45:08 +00:00
<?php
namespace Database\Seeders;
use App\User;
use Illuminate\Database\Seeder;
class UsersTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$info = [
'name' => 'admin',
'email' => 'admin@admin.com',
'password' => bcrypt(12345678),
'is_active' => 1,
];
//create user
$user = User::create($info);
}
}