⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
invoice
/
database
/
seeders
/
View File Name :
DemoInvoiceProductsTableSeeder.php
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; class DemoInvoiceProductsTableSeeder extends Seeder { /** * Auto generated seed file * * @return void */ public function run() { \DB::table('invoice_products')->delete(); \DB::table('invoice_products')->insert([ 0 => [ 'id' => 1, 'quantity' => 5.0, 'purchase_price' => 872.49, 'sale_price' => 950.0, 'unit_cost' => 1045.0, 'tax_amount' => 95.0, 'created_at' => now(), 'updated_at' => now(), 'invoice_id' => 1, 'product_id' => 1, ], 1 => [ 'id' => 2, 'quantity' => 5.0, 'purchase_price' => 960.6, 'sale_price' => 1200.0, 'unit_cost' => 1200.0, 'tax_amount' => 109.09, 'created_at' => now(), 'updated_at' => now(), 'invoice_id' => 1, 'product_id' => 2, ], 2 => [ 'id' => 3, 'quantity' => 5.0, 'purchase_price' => 1260.6, 'sale_price' => 1500.0, 'unit_cost' => 1500.0, 'tax_amount' => 0.0, 'created_at' => now(), 'updated_at' => now(), 'invoice_id' => 1, 'product_id' => 3, ], 3 => [ 'id' => 4, 'quantity' => 5.0, 'purchase_price' => 872.49, 'sale_price' => 950.0, 'unit_cost' => 1045.0, 'tax_amount' => 95.0, 'created_at' => now(), 'updated_at' => now(), 'invoice_id' => 2, 'product_id' => 1, ], 4 => [ 'id' => 5, 'quantity' => 5.0, 'purchase_price' => 960.6, 'sale_price' => 1200.0, 'unit_cost' => 1200.0, 'tax_amount' => 109.09, 'created_at' => now(), 'updated_at' => now(), 'invoice_id' => 2, 'product_id' => 2, ], 5 => [ 'id' => 6, 'quantity' => 5.0, 'purchase_price' => 1260.6, 'sale_price' => 1500.0, 'unit_cost' => 1500.0, 'tax_amount' => 0.0, 'created_at' => now(), 'updated_at' => now(), 'invoice_id' => 2, 'product_id' => 3, ], 6 => [ 'id' => 7, 'quantity' => 5.0, 'purchase_price' => 872.49, 'sale_price' => 950.0, 'unit_cost' => 1045.0, 'tax_amount' => 95.0, 'created_at' => now(), 'updated_at' => now(), 'invoice_id' => 3, 'product_id' => 1, ], 7 => [ 'id' => 8, 'quantity' => 5.0, 'purchase_price' => 960.6, 'sale_price' => 1200.0, 'unit_cost' => 1200.0, 'tax_amount' => 109.09, 'created_at' => now(), 'updated_at' => now(), 'invoice_id' => 3, 'product_id' => 2, ], 8 => [ 'id' => 9, 'quantity' => 5.0, 'purchase_price' => 1260.6, 'sale_price' => 1500.0, 'unit_cost' => 1500.0, 'tax_amount' => 0.0, 'created_at' => now(), 'updated_at' => now(), 'invoice_id' => 3, 'product_id' => 3, ], 9 => [ 'id' => 10, 'quantity' => 5.0, 'purchase_price' => 872.49, 'sale_price' => 950.0, 'unit_cost' => 1045.0, 'tax_amount' => 95.0, 'created_at' => now(), 'updated_at' => now(), 'invoice_id' => 4, 'product_id' => 1, ], 10 => [ 'id' => 11, 'quantity' => 5.0, 'purchase_price' => 960.6, 'sale_price' => 1200.0, 'unit_cost' => 1200.0, 'tax_amount' => 109.09, 'created_at' => now(), 'updated_at' => now(), 'invoice_id' => 4, 'product_id' => 2, ], 11 => [ 'id' => 12, 'quantity' => 5.0, 'purchase_price' => 1260.6, 'sale_price' => 1500.0, 'unit_cost' => 1500.0, 'tax_amount' => 0.0, 'created_at' => now(), 'updated_at' => now(), 'invoice_id' => 4, 'product_id' => 3, ], 12 => [ 'id' => 13, 'quantity' => 5.0, 'purchase_price' => 872.49, 'sale_price' => 950.0, 'unit_cost' => 1045.0, 'tax_amount' => 95.0, 'created_at' => now(), 'updated_at' => now(), 'invoice_id' => 5, 'product_id' => 1, ], 13 => [ 'id' => 14, 'quantity' => 5.0, 'purchase_price' => 960.6, 'sale_price' => 1200.0, 'unit_cost' => 1200.0, 'tax_amount' => 109.09, 'created_at' => now(), 'updated_at' => now(), 'invoice_id' => 5, 'product_id' => 2, ], 14 => [ 'id' => 15, 'quantity' => 5.0, 'purchase_price' => 1260.6, 'sale_price' => 1500.0, 'unit_cost' => 1500.0, 'tax_amount' => 0.0, 'created_at' => now(), 'updated_at' => now(), 'invoice_id' => 5, 'product_id' => 3, ], 15 => [ 'id' => 16, 'quantity' => 10.0, 'purchase_price' => 877.85, 'sale_price' => 950.0, 'unit_cost' => 1045.0, 'tax_amount' => 95.0, 'created_at' => now(), 'updated_at' => now(), 'invoice_id' => 6, 'product_id' => 1, ], 16 => [ 'id' => 17, 'quantity' => 10.0, 'purchase_price' => 953.03, 'sale_price' => 1200.0, 'unit_cost' => 1200.0, 'tax_amount' => 109.09, 'created_at' => now(), 'updated_at' => now(), 'invoice_id' => 6, 'product_id' => 2, ], 17 => [ 'id' => 18, 'quantity' => 10.0, 'purchase_price' => 1145.89, 'sale_price' => 1500.0, 'unit_cost' => 1500.0, 'tax_amount' => 0.0, 'created_at' => now(), 'updated_at' => now(), 'invoice_id' => 6, 'product_id' => 3, ], ]); } }