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.
 
 
 
 
 
 

49 lines
1.4 KiB

<?php
namespace Database\Seeders;
use App\Models\Customer;
use Illuminate\Database\Seeder;
class CustomerSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
// Sisipkan data pertama
Customer::create([
'name' => 'DHARMA G',
'code_customer' => 'DPM',
'lot_no' => 'JKT23',
'no_tlp' => '02122344',
'address' => 'Jalan Raya Ciwatu',
'created_by' => 'Seeder',
'updated_by' => 'Seeder',
]);
// Sisipkan data kedua
Customer::create([
'name' => 'ADHI CHANDRA G',
'code_customer' => 'ACJ',
'lot_no' => 'JKT23',
'no_tlp' => '02198765',
'address' => 'Jalan Raya Gelarmendala',
'created_by' => 'Seeder',
'updated_by' => 'Seeder',
]);
for ($i = 3; $i <= 10; $i++) {
Customer::create([
'name' => 'Customer ' . $i,
'code_customer' => 'Code ' . $i, // Adjust the length as needed
'lot_no' => 'Lot ' . $i, // Adjust the length as needed
'no_tlp' => '12345678 ' . $i, // Adjust the length as needed
'address' => 'Address ' . $i,
'created_by' => 'Seeder',
'updated_by' => 'Seeder',
]);
}
}
}