mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-04 12:34:03 +00:00
docs: add PHPDoc for tenant() method in BelongsToTenant trait
This commit is contained in:
parent
3c0e21b726
commit
36bd96a205
1 changed files with 3 additions and 0 deletions
|
|
@ -17,6 +17,9 @@ trait BelongsToTenant
|
|||
{
|
||||
use FillsCurrentTenant;
|
||||
|
||||
/**
|
||||
* @return BelongsTo<\Stancl\Tenancy\Contracts\Tenant, $this>
|
||||
*/
|
||||
public function tenant(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(config('tenancy.models.tenant'), Tenancy::tenantKeyColumn());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue