diff --git a/src/Guard.php b/src/Guard.php index 41d802c10..c0630392b 100644 --- a/src/Guard.php +++ b/src/Guard.php @@ -22,7 +22,7 @@ public static function getNames($model): Collection if (\method_exists($model, 'guardName')) { $guardName = $model->guardName(); } else { - $guardName = $model->guard_name ?? null; + $guardName = $model->getAttributeValue('guard_name'); } }