Wallet operations

This commit is contained in:
Fairuz
2021-10-07 01:34:11 +08:00
parent dbfe8751d6
commit e94ef44928
31 changed files with 1027 additions and 29 deletions
+8
View File
@@ -90,6 +90,14 @@ class Company extends AbstractModel implements Documentable
return $this->HasMany(Booking::class, 'company_id');
}
/**
* @return MorphMany
*/
public function wallets(): morphMany
{
return $this->morphMany(Wallet::class, 'owner');
}
/**
* @return Builder
*/