[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: ProductSeeder.php
<?php namespace Database\Seeders; use App\Models\Product; use Illuminate\Database\Seeder; class ProductSeeder extends Seeder { /** * Run the database seeds. */ public function run(): void { $products = array( array('productName' => 'Tesla Cyber Tank', 'business_id' => '1', 'unit_id' => '1', 'brand_id' => '1', 'category_id' => '1', 'productCode' => '0001', 'productPicture' => 'uploads/25/05/1746862761-490.jpg', 'productDealerPrice' => '150.00', 'productPurchasePrice' => '100.00', 'productSalePrice' => '200.00', 'productWholeSalePrice' => '180.00', 'productStock' => '10.00', 'expire_date' => NULL, 'alert_qty' => '0', 'profit_percent' => '0', 'vat_amount' => '0.00', 'vat_type' => 'exclusive', 'size' => '48 m', 'type' => 'car', 'color' => 'blue', 'weight' => '1000 kg', 'capacity' => '2', 'productManufacturer' => 'Tesla', 'meta' => NULL, 'created_at' => now(), 'updated_at' => now(), 'vat_id' => NULL), array('productName' => 'Bugatti', 'business_id' => '1', 'unit_id' => '1', 'brand_id' => '2', 'category_id' => '1', 'productCode' => '8941161113050', 'productPicture' => 'uploads/25/05/1746862748-579.jpg', 'productDealerPrice' => '220.00', 'productPurchasePrice' => '200.00', 'productSalePrice' => '300.00', 'productWholeSalePrice' => '250.00', 'productStock' => '10.00', 'expire_date' => NULL, 'alert_qty' => '0', 'profit_percent' => '0', 'vat_amount' => '0.00', 'vat_type' => 'exclusive', 'size' => '50 m', 'type' => 'Car', 'color' => 'Black', 'weight' => '1000', 'capacity' => '2', 'productManufacturer' => 'Bugatti', 'meta' => NULL, 'created_at' => now(), 'updated_at' => now(), 'vat_id' => NULL), array('productName' => 'Tesla Electric', 'business_id' => '1', 'unit_id' => '1', 'brand_id' => '1', 'category_id' => '1', 'productCode' => '8941153501582', 'productPicture' => 'uploads/25/05/1746862733-793.jpg', 'productDealerPrice' => '70.00', 'productPurchasePrice' => '50.00', 'productSalePrice' => '100.00', 'productWholeSalePrice' => '90.00', 'productStock' => '10.00', 'expire_date' => NULL, 'alert_qty' => '0', 'profit_percent' => '0', 'vat_amount' => '0.00', 'vat_type' => 'exclusive', 'size' => '66', 'type' => 'Car', 'color' => 'Red', 'weight' => '1000', 'capacity' => '2', 'productManufacturer' => 'Tesla', 'meta' => NULL, 'created_at' => now(), 'updated_at' => now(), 'vat_id' => NULL), array('productName' => 'Bugatti Chiron', 'business_id' => '1', 'unit_id' => '1', 'brand_id' => '2', 'category_id' => '1', 'productCode' => 'L-00001074', 'productPicture' => 'uploads/24/11/1731320789-386.jpg', 'productDealerPrice' => '230.00', 'productPurchasePrice' => '220.00', 'productSalePrice' => '270.00', 'productWholeSalePrice' => '250.00', 'productStock' => '9.00', 'expire_date' => NULL, 'alert_qty' => '0', 'profit_percent' => '0', 'vat_amount' => '0.00', 'vat_type' => 'exclusive', 'size' => '57', 'type' => 'Car', 'color' => 'Black', 'weight' => '1000', 'capacity' => '2', 'productManufacturer' => 'Bugatti', 'meta' => NULL, 'created_at' => now(), 'updated_at' => now(), 'vat_id' => NULL) ); Product::insert($products); } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.97 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002