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
1.0 KiB

<?php
namespace Database\Seeders;
use App\Models\Kondisi_Peti;
use Illuminate\Database\Seeder;
class Kondisi_PetiSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
1 year ago
// Sisipkan data Kondisi Peti Rusak
Kondisi_Peti::create([
'nama_kondisi' => 'Rusak',
'deskripsi_kondisi' => 'Barang Rusak',
'created_by' => 'Seeder',
'updated_by' => 'Seeder',
]);
1 year ago
// Sisipkan data Kondisi Peti Baik
Kondisi_Peti::create([
'nama_kondisi' => 'Ready',
'deskripsi_kondisi' => 'Barang Siap Bawa',
'created_by' => 'Seeder',
'updated_by' => 'Seeder',
]);
for ($i = 3; $i <= 100; $i++) {
Kondisi_Peti::create([
'nama_kondisi' => 'Kondisi ' . $i,
'deskripsi_kondisi' => 'Description for Kondisi ' . $i,
'created_by' => 'Seeder',
'updated_by' => 'Seeder',
]);
}
}
}