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 50ab4fd commit 2cefcd6Copy full SHA for 2cefcd6
src/Laravel/Eloquent/Metadata/ModelMetadata.php
@@ -71,11 +71,11 @@ public function getAttributes(Model $model): Collection
71
72
return collect($columns)
73
->reject(
74
- fn($column) => $relations->contains(
75
- fn($relation) => $relation['foreign_key'] === $column['name']
+ fn ($column) => $relations->contains(
+ fn ($relation) => $relation['foreign_key'] === $column['name']
76
)
77
78
- ->map(fn($column) => [
+ ->map(fn ($column) => [
79
'name' => $column['name'],
80
'type' => $column['type'],
81
'increments' => $column['auto_increment'],
0 commit comments