Advertisement
soden

Untitled

Nov 26th, 2022
677
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.53 KB | None | 0 0
  1. <?php
  2.  
  3. namespace Database\Seeders;
  4.  
  5. // use Illuminate\Database\Console\Seeds\WithoutModelEvents;
  6. use Illuminate\Database\Seeder;
  7.  
  8. class DatabaseSeeder extends Seeder
  9. {
  10.     /**
  11.      * Seed the application's database.
  12.      *
  13.      * @return void
  14.      */
  15.     public function run()
  16.     {
  17.         \App\Models\Role::create([
  18.             'role_name' => 'superadmin',
  19.         ]);
  20.  
  21.         \App\Models\Role::create([
  22.             'role_name' => 'pegawai',
  23.         ]);
  24.  
  25.         \App\Models\User::factory(5)->create();
  26.     }
  27. }
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement