Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Database\Seeders;
- // use Illuminate\Database\Console\Seeds\WithoutModelEvents;
- use Illuminate\Database\Seeder;
- class DatabaseSeeder extends Seeder
- {
- /**
- * Seed the application's database.
- *
- * @return void
- */
- public function run()
- {
- \App\Models\Role::create([
- 'role_name' => 'superadmin',
- ]);
- \App\Models\Role::create([
- 'role_name' => 'pegawai',
- ]);
- \App\Models\User::factory(5)->create();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement