Siopas Inventory PETI for ISTW Website
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

40 lines
944 B

<?php
namespace Database\Seeders;
use App\Models\m_role;
use Illuminate\Database\Seeder;
class RoleSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
// Role Admin
m_role::create([
'name' => 'Admin',
'description' => 'admin sistem',
'created_by' => 'Seeder',
'updated_by' => 'Seeder',
]);
// Role User
m_role::create([
'name' => 'Operator',
'description' => 'Operator sistem',
'created_by' => 'Seeder',
'updated_by' => 'Seeder',
]);
// for ($i = 3; $i <= 100; $i++) {
// m_role::create([
// 'name' => 'Role ' . $i,
// 'description' => 'Description ' . $i,
// 'created_by' => 'Seeder',
// 'updated_by' => 'Seeder',
// ]);
// }
}
}