mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 09:34:04 +00:00
Merge branch '3.x' of github.com:stancl/tenancy into 3.x
This commit is contained in:
commit
a002f59420
2 changed files with 2 additions and 2 deletions
|
|
@ -17,7 +17,7 @@ use Stancl\Tenancy\Events;
|
|||
* @property Carbon $updated_at
|
||||
* @property array $data
|
||||
*
|
||||
* @method TenantCollection all()
|
||||
* @method static TenantCollection all()
|
||||
*/
|
||||
class Tenant extends Model implements Contracts\Tenant
|
||||
{
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ class TenantScope implements Scope
|
|||
return;
|
||||
}
|
||||
|
||||
$builder->where(BelongsToTenant::$tenantIdColumn, tenant()->getTenantKey());
|
||||
$builder->where($model->qualifyColumn(BelongsToTenant::$tenantIdColumn), tenant()->getTenantKey());
|
||||
}
|
||||
|
||||
public function extend(Builder $builder)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue