Raffales-LMS/database/seeders/UsersTableSeeder.php
2024-04-16 15:43:24 +05:45

39 lines
838 B
PHP

<?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');
}
}