Contract for models that are associated with a BusinessPartner.
This interface provides a standardized way for the framework to access
the BusinessPartnerInterface related to an authenticated user or
another domain entity.
Use Cases:
Implementing Classes:
App\Models\User).Example:
class User extends Authenticatable implements HasBusinessPartnerInterface
{
public function partner(): ?BusinessPartnerInterface
{
return $this->belongsTo(BusinessPartner::class, 'partner_id')->first();
}
}
| Methods | ||
|---|---|---|
public
|
partner(): BusinessPartnerInterface|null
|
# |