Skip to content

Commit 08b1b98

Browse files
sebj54taylorotwell
andauthored
Add compatible query type to Model::resolveRouteBindingQuery (#52339)
* Add compatible query type to Model::resolveRouteBindingQuery * Update Model.php --------- Co-authored-by: Taylor Otwell <[email protected]>
1 parent 639a2ee commit 08b1b98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Database/Eloquent/Model.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2123,7 +2123,7 @@ protected function childRouteBindingRelationshipName($childType)
21232123
/**
21242124
* Retrieve the model for a bound value.
21252125
*
2126-
* @param \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Relations\Relation $query
2126+
* @param \Illuminate\Database\Eloquent\Model|\Illuminate\Contracts\Database\Eloquent\Builder|\Illuminate\Database\Eloquent\Relations\Relation $query
21272127
* @param mixed $value
21282128
* @param string|null $field
21292129
* @return \Illuminate\Database\Eloquent\Relations\Relation

0 commit comments

Comments
 (0)