cleaning day

This commit is contained in:
ludo
2024-02-22 21:28:33 +01:00
parent 00fc978217
commit 3acb69abe4
111 changed files with 198 additions and 2456 deletions

View File

@@ -3,8 +3,10 @@
namespace App\Models\Shop;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Venturecraft\Revisionable\RevisionableTrait;
use Wildside\Userstamps\Userstamps;
use Znck\Eloquent\Relations\BelongsToThrough;
class InvoicePayment extends Model
{
@@ -14,12 +16,12 @@ class InvoicePayment extends Model
protected $table = 'shop_invoice_payments';
public function invoice()
public function invoice(): BelongsTo
{
return $this->belongsTo(Invoice::class);
}
public function order()
public function order(): BelongsToThrough
{
return $this->belongsToThrough(Order::class, Invoice::class);
}