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,6 +3,8 @@
namespace App\Models\Shop;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\SoftDeletes;
use LaracraftTech\LaravelDateScopes\DateScopes;
use Venturecraft\Revisionable\RevisionableTrait;
@@ -20,22 +22,22 @@ class Invoice extends Model
protected $dontKeepRevisionOf = ['updated_by', 'updated_at'];
public function payments()
public function payments(): HasMany
{
return $this->hasMany(InvoicePayment::class);
}
public function order()
public function order(): BelongsTo
{
return $this->belongsTo(Order::class);
}
public function customer()
public function customer(): BelongsTo
{
return $this->belongsTo(Customer::class, 'customer_id');
}
public function address()
public function address(): BelongsTo
{
return $this->belongsTo(CustomerAddress::class, 'invoice_address_id');
}