We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e98dc2 commit 3ce268eCopy full SHA for 3ce268e
src/DataCollector/GateCollector.php
@@ -65,7 +65,7 @@ public function addCheck($user, $ability, $result, $arguments = [])
65
if ($arguments[0] instanceof Model) {
66
$model = $arguments[0];
67
if ($model->getKeyName() && isset($model[$model->getKeyName()])) {
68
- $target = get_class($model) . '(' . $model->getKeyName() . '=' . $model->getKeyName() . ')';
+ $target = get_class($model) . '(' . $model->getKeyName() . '=' . $model->getKey() . ')';
69
} else {
70
$target = get_class($model);
71
}
0 commit comments