Change table tenants name #417
-
Hi dear friends.. I'd like to change a name from tenants table in the database landlord When I change it to tenantgroups I get the following error SQLSTATE[42S02]: Base table or view not found: 1146 Table 'landlord.tenants' doesn't exist (SQL: select * from Thanks for help..... |
Beta Was this translation helpful? Give feedback.
Answered by
masterix21
Nov 23, 2022
Replies: 1 comment 1 reply
-
It would be best if you extended the package class TenantGroup extends \Spatie\Multitenancy\Models\Tenant
{
protected $table = 'tenantgroups';
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
awebapps
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It would be best if you extended the package
Tenant
model specifying the database table like so: