refactor, better class namespace intergration
This commit is contained in:
@@ -13,7 +13,7 @@ class InvoiceItem extends Model
|
||||
*/
|
||||
public function Product()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Shop\Product');
|
||||
return $this->belongsTo(Product::class);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -21,6 +21,6 @@ class InvoiceItem extends Model
|
||||
*/
|
||||
public function Invoice()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Shop\Invoice');
|
||||
return $this->belongsTo(Invoice::class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user