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.
53 lines
1.4 KiB
53 lines
1.4 KiB
<?php |
|
|
|
namespace Database\Seeders; |
|
|
|
use App\Models\asset_status; |
|
use Illuminate\Database\Seeder; |
|
|
|
class AssetStatusSeeder extends Seeder |
|
{ |
|
/** |
|
* Run the database seeds. |
|
*/ |
|
public function run(): void |
|
{ |
|
//barang in |
|
for ($i = 21; $i <= 30; $i++) { |
|
asset_status::create([ |
|
'peti_id' => $i, |
|
'exit_at' => now(), |
|
'est_pengembalian' => now(), |
|
'exit_pic' => 'Seeder', |
|
'customer_id' => $i, |
|
'warehouse_id' => $i, |
|
'enter_at' => now(), |
|
'enter_pic' => 'Seeder', |
|
'enter_warehouse' => $i, |
|
'kondisi_peti_id' => $i, |
|
'status' => 1, |
|
'created_by' => 'Seeder', |
|
'updated_by' => 'Seeder', |
|
'created_at' => now(), |
|
'updated_at' => now(), |
|
]); |
|
} |
|
|
|
//barang out |
|
for ($i = 31; $i <= 40; $i++) { |
|
asset_status::create([ |
|
'peti_id' => $i, |
|
'exit_at' => now(), |
|
'est_pengembalian' => now(), |
|
'exit_pic' => 'Seeder', |
|
'customer_id' => $i, |
|
'warehouse_id' => $i, |
|
'status' => 0, |
|
'created_by' => 'Seeder', |
|
'updated_by' => 'Seeder', |
|
'created_at' => now(), |
|
'updated_at' => now(), |
|
]); |
|
} |
|
} |
|
} |