From 9226a1ec6c4f06cf75ab25f864ccd8e6fcdffb91 Mon Sep 17 00:00:00 2001 From: lukinovec Date: Wed, 26 Apr 2023 12:48:04 +0200 Subject: [PATCH] Fix syntax error --- src/Commands/CreateRLSPoliciesForTenantTables.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Commands/CreateRLSPoliciesForTenantTables.php b/src/Commands/CreateRLSPoliciesForTenantTables.php index acfa0983..9ab749e9 100644 --- a/src/Commands/CreateRLSPoliciesForTenantTables.php +++ b/src/Commands/CreateRLSPoliciesForTenantTables.php @@ -47,7 +47,8 @@ class CreateRLSPoliciesForTenantTables extends Command return Command::SUCCESS; } else { - $this->components->info("Table '$table' is not related to tenant. Make sure {$model::class} uses the BelongsToPrimaryModel trait."); + $modelName = $model::class; + $this->components->info("Table '$table' is not related to tenant. Make sure $modelName uses the BelongsToPrimaryModel trait."); return Command::FAILURE; }