Skip to content

Commit a359ebf

Browse files
committed
fix: cast id to int in FormData resolveRouteBinding
1 parent 44a76ec commit a359ebf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/Models/FormData.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public function resolveRouteBinding($value, $field = null)
132132
{
133133
return $this
134134
->withDraft()
135-
->where('id', $value)
135+
->where('id', (int)$value)
136136
->orWhere('key', $value)
137137
->firstOrFail();
138138
}

0 commit comments

Comments
 (0)