cleaning day
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user