1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-04 19:24:02 +00:00

Rename method

This commit is contained in:
lukinovec 2023-06-28 07:27:51 +02:00
parent 66c2ac4fa4
commit 238132781d

View file

@ -24,7 +24,7 @@ class CreateRLSPoliciesForTenantTables extends Command
{
DB::transaction(function () {
foreach (tenancy()->getTenantModels() as $model) {
$this->useRlsOnModel($model);
$this->applyRlsOnModel($model);
}
});
@ -34,7 +34,7 @@ class CreateRLSPoliciesForTenantTables extends Command
/**
* Make model use RLS if it belongs to a tenant directly, or through a parent primary model.
*/
protected function useRlsOnModel(Model $model): void
protected function applyRlsOnModel(Model $model): void
{
$table = $model->getTable();
$tenantKeyName = tenancy()->tenantKeyColumn();