tidy up the order remark backend api

This commit is contained in:
edmondlang
2021-10-31 15:43:57 +08:00
parent 6444f471e8
commit 5e7cfd4da0
6 changed files with 34 additions and 40 deletions
+8
View File
@@ -148,4 +148,12 @@ class Order extends AbstractModel implements Addressable, Packable, Remarkable
{
return $this->morphMany(Transaction::class, 'owner');
}
/**
* @return MorphMany
*/
public function remarks(): morphMany
{
return $this->morphMany(Remark::class, 'owner');
}
}