1
0
Fork 0
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:
Samuel Štancl 2020-08-01 15:07:17 +02:00
commit a002f59420
2 changed files with 2 additions and 2 deletions

View file

@ -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
{

View file

@ -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)