Closed eberkund closed 7 years ago
In the documentation it says I can set a site wide default tenant column but the app/landlord.php file doesn't seem to do anything.
app/landlord.php
'default_tenant_columns' => ['tenant_id'],
I still have to specify the $tenantColumn in my middleware or anywhere else I want to use it.
$tenantColumn
public function handle($request, Closure $next) { $tenantColumn = 'tenant_id'; $tenantId = '1'; Landlord::addTenant($tenantColumn, $tenantId); return $next($request); }
The queries builded to select only the tenant records use this config
Could you give an example?
Yeah I can see that'd be confusing. It's used when building the queries that actually do the scoping.
In the documentation it says I can set a site wide default tenant column but the
app/landlord.php
file doesn't seem to do anything.I still have to specify the
$tenantColumn
in my middleware or anywhere else I want to use it.