Accessing BelongsToTenant::$tenantIdColumn is deprecated is breaking my new app
zach2825 opened this issue · 1 comments
zach2825 commented
Error Message:
Accessing static trait property Stancl\Tenancy\Database\Concerns\BelongsToTenant::$tenantIdColumn is deprecated, it should only be accessed on a class using the trait
It occurs in this file and line
vendor/stancl/tenancy/src/Database/TenantScope.php:20
$builder->where($model->qualifyColumn(BelongsToTenant::$tenantIdColumn), tenant()->getTenantKey());
Like in #1 if you add the use statement and in 2 use self the issues is fixed.
zach2825 commented
I'm sorry this is the wrong project for this comment and issue.