File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ trait BelongsToTenant
1818 use FillsCurrentTenant;
1919
2020 /**
21- * @return BelongsTo<\Stancl\Tenancy\Contracts\Tenant, $this>
21+ * @return BelongsTo<\Illuminate\Database\Eloquent\Model&\ Stancl\Tenancy\Contracts\Tenant, $this>
2222 */
2323 public function tenant (): BelongsTo
2424 {
Original file line number Diff line number Diff line change 44
55namespace Stancl \Tenancy \Database \Concerns ;
66
7+ use Illuminate \Database \Eloquent \Relations \HasMany ;
78use Stancl \Tenancy \Contracts \Domain ;
89use Stancl \Tenancy \Tenancy ;
910
1516trait HasDomains
1617{
1718 /**
18- * @return \Illuminate\Database\Eloquent\Relations\HasMany< Domain, $this>
19+ * @return HasMany< \Illuminate\Database\Eloquent\Model&\Stancl\Tenancy\Contracts\ Domain, $this>
1920 */
20- public function domains ()
21+ public function domains (): HasMany
2122 {
2223 return $ this ->hasMany (config ('tenancy.models.domain ' ), Tenancy::tenantKeyColumn ());
2324 }
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ public function shouldSync(): bool
106106 }
107107
108108 /**
109- * @return BelongsToMany<\Stancl\Tenancy\Database\Contracts\TenantWithDatabase, $this>
109+ * @return BelongsToMany<\Illuminate\Database\Eloquent\Model&\ Stancl\Tenancy\Database\Contracts\TenantWithDatabase, $this>
110110 */
111111 public function tenants (): BelongsToMany
112112 {
You can’t perform that action at this time.
0 commit comments