database/seeds/ModelHasRolesTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        for($i = 1; $i < 6; $i++){
            DB::table('model_has_roles')->insert([
                'role_id' => $i,
                'model_type' => 'App\Models\User',
                'model_id' => $i,
            ]);
        }
    }
public function run ( ) { for ( $ i = 1 ; $ i < 6 ; $ i ++ ) { DB :: table ( 'model_has_roles' ) -> insert ( [ 'role_id' => $ i , 'model_type' => 'App\Models\User' , 'model_id' => $ i , ] ) ; } }
Run the database seeds.
Run the database seeds .