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