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.
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Database\Seeders;
|
|
|
|
|
|
|
|
use App\Models\Peti;
|
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
|
|
|
|
class PetiSeeder extends Seeder
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the database seeds.
|
|
|
|
*/
|
|
|
|
public function run()
|
|
|
|
{
|
|
|
|
for ($i = 1; $i <= 100; $i++) {
|
|
|
|
Peti::create([
|
|
|
|
'tipe_peti_id' => $i,
|
|
|
|
'warna' => 'Warna ' . $i,
|
|
|
|
'fix_lot' => 'Dummy Fix Lot ' . $i,
|
|
|
|
'packing_no' => $i,
|
|
|
|
'customer_id' => $i,
|
|
|
|
'jumlah' => $i,
|
|
|
|
'date_pembuatan' => now(),
|
|
|
|
'warehouse_id' => $i, // Adjust based on the number of warehouses
|
|
|
|
'kondisipeti_id' => $i,
|
|
|
|
'status' => 'AKTIF',
|
|
|
|
'created_at' => now(),
|
|
|
|
'updated_at' => now(),
|
|
|
|
'created_by' => 'Seeder',
|
|
|
|
'updated_by' => 'Seeder',
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|