⚝
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 :
DemoProductsTableSeeder.php
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; class DemoProductsTableSeeder extends Seeder { /** * Auto generated seed file * * @return void */ public function run() { \DB::table('products')->delete(); \DB::table('products')->insert([ 0 => [ 'id' => 1, 'name' => 'Pentium Silver N5030 15.6"', 'slug' => 'pentium-silver-n5030-15-6-hd-laptop', 'code' => '000001', 'model' => 'HP 15s-du1117TU', 'barcode_symbology' => 'CODE128', 'tax_type' => 'Exclusive', 'purchase_price' => 877.85, 'regular_price' => 1000.0, 'discount' => 5.0, 'inventory_count' => 22.0, 'alert_qty' => 10, 'note' => '', 'status' => 1, 'image_path' => 'product-01.jpeg', 'created_at' => now(), 'updated_at' => now(), 'sub_cat_id' => 1, 'brand_id' => 1, 'unit_id' => 1, 'tax_id' => 2, ], 1 => [ 'id' => 2, 'name' => 'Celeron Silver N5030 15.6"', 'slug' => 'pentium-silver-n5030-15-6', 'code' => '000002', 'model' => 'HP 15s-du1116TU', 'barcode_symbology' => 'CODE128', 'tax_type' => 'Inclusive', 'purchase_price' => 953.03, 'regular_price' => 1200.0, 'discount' => null, 'inventory_count' => 21.0, 'alert_qty' => 10, 'note' => '', 'status' => 1, 'image_path' => 'product-02.jpeg', 'created_at' => now(), 'updated_at' => now(), 'sub_cat_id' => 1, 'brand_id' => 1, 'unit_id' => 1, 'tax_id' => 2, ], 2 => [ 'id' => 3, 'name' => 'Inspiron 15 3510 Intel Celeron', 'slug' => 'inspiron-15-3510-intel-celeron', 'code' => '000003', 'model' => 'Inspiron-3510', 'barcode_symbology' => 'CODE128', 'tax_type' => 'Exclusive', 'purchase_price' => 1145.89, 'regular_price' => 1500.0, 'discount' => null, 'inventory_count' => 23.0, 'alert_qty' => 10, 'note' => '', 'status' => 1, 'image_path' => 'product-03.jpeg', 'created_at' => now(), 'updated_at' => now(), 'sub_cat_id' => 1, 'brand_id' => 2, 'unit_id' => 1, 'tax_id' => 3, ], ]); } }