⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.138
Server IP:
186.226.58.36
Server:
Linux da02.sh15.net 3.10.0-1160.119.1.vz7.224.4 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
Server Software:
Apache/2
PHP Version:
8.1.32
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
redesystem
/
public_html
/
sys
/
app
/
Models
/
Edit File: InvoiceItem.php
'required', 'quantity' => 'required|regex:/^\d*(\.\d{1,2})?$/', 'price' => 'required|regex:/^\d+(\.\d{1,2})?$/', ]; protected $table = 'invoice_items'; public $fillable = [ 'invoice_id', 'product_id', 'product_name', 'quantity', 'price', 'total', ]; protected $casts = [ 'invoice_id' => 'integer', 'product_id' => 'integer', 'product_name' => 'string', 'quantity' => 'double', 'price' => 'double', 'total' => 'double', ]; public function product(): BelongsTo { return $this->belongsTo(Product::class); } public function invoiceItemTax(): HasMany { return $this->hasMany(InvoiceItemTax::class); } }
Simpan