Raffales-LMS/database/seeders/UsersTableSeeder.php

39 lines
838 B
PHP
Raw Normal View History

2024-04-16 09:58:24 +00:00
<?php
namespace Database\Seeders;
use App\Modules\Models\Branch\Branch;
use App\Modules\Models\User;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Hash;
class UsersTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
//
$user=User::create([
'name'=>'SuperAdmin',
'email'=>'admin@customer.com',
'password'=>Hash::make('admin@customer'),
'status' => 'active',
]);
$user->assignRole('SuperAdmin');
$prajwal = User::Create([
'name'=>'Prajwal',
'email'=>'prajwalbro@hotmail.com',
'password'=>Hash::make('p@ssw0rd'),
'status' => 'active',
]);
$prajwal->assignRole('SuperAdmin');
}
}