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.
52 lines
1.4 KiB
52 lines
1.4 KiB
<?php |
|
|
|
namespace Database\Seeders; |
|
|
|
use App\Models\m_warehouse; |
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents; |
|
use Illuminate\Database\Seeder; |
|
|
|
class WarehouseSeeder extends Seeder |
|
{ |
|
/** |
|
* Run the database seeds. |
|
*/ |
|
public function run(): void |
|
{ |
|
// Warehouse 1 |
|
m_warehouse::create([ |
|
'name' => 'Jakarta', |
|
'description' => 'PT Indonesia Steel Tube Works Jakarta Office', |
|
'address' => 'Jln. Jakarta Timur', |
|
'created_by' => 'Seeder', |
|
'updated_by' => 'Seeder', |
|
]); |
|
|
|
// Warehouse 2 |
|
m_warehouse::create([ |
|
'name' => 'Bekasi', |
|
'description' => 'PT Indonesia Steel Tube Works Bekasi Office', |
|
'address' => 'Jln. Bekasi', |
|
'created_by' => 'Seeder', |
|
'updated_by' => 'Seeder', |
|
]); |
|
|
|
// Warehouse 3 |
|
m_warehouse::create([ |
|
'name' => 'Semarang', |
|
'description' => 'PT Indonesia Steel Tube Works Semarang Office', |
|
'address' => 'Jln. Semarang', |
|
'created_by' => 'Seeder', |
|
'updated_by' => 'Seeder', |
|
]); |
|
|
|
// Warehouse 4 |
|
m_warehouse::create([ |
|
'name' => 'Surabaya', |
|
'description' => 'PT Indonesia Steel Tube Works Surabaya Office', |
|
'address' => 'Jln. Surabaya', |
|
'created_by' => 'Seeder', |
|
'updated_by' => 'Seeder', |
|
]); |
|
} |
|
}
|
|
|