refactor, better class namespace intergration
This commit is contained in:
@@ -14,11 +14,11 @@ class Variation extends Model
|
||||
|
||||
public function package()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Shop\Package');
|
||||
return $this->belongsTo(Package::class);
|
||||
}
|
||||
|
||||
public function unity()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Shop\Unity');
|
||||
return $this->belongsTo(Unity::class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user