26 lines
587 B
PHP
Raw Normal View History

2024-06-13 21:02:05 +05:45
<?php
namespace Database\Seeders;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use App\Models\User;
class UserSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
User::create([
'name' => 'Prajwal Adhikari',
'email' => 'prajwalbro@hotmail.com',
'username' => 'prajwalbro',
2024-06-20 16:42:33 +05:45
'password' => bcrypt('p@ssw0rd'),
2024-06-13 21:02:05 +05:45
'status' => 1,
2024-06-20 16:42:33 +05:45
'email_verified_at' => now(),
])->assignRole('admin', 'editor');
2024-06-13 21:02:05 +05:45
}
}