refactor, better class namespace intergration

This commit is contained in:
Ludovic CANDELLIER
2021-10-04 14:09:51 +02:00
parent 0f23d5cd56
commit 48d89d338c
26 changed files with 68 additions and 78 deletions

View File

@@ -13,7 +13,7 @@ class Order extends Model
*/
public function Customer()
{
return $this->belongsTo('App\Models\Shop\Customer');
return $this->belongsTo(Customer::class);
}
/**
@@ -21,6 +21,6 @@ class Order extends Model
*/
public function Payments()
{
return $this->hasMany('App\Models\Shop\OrderPayment');
return $this->hasMany(OrderPayment::class);
}
}