diff --git a/src/Illuminate/Contracts/Routing/UrlRoutable.php b/src/Illuminate/Contracts/Routing/UrlRoutable.php index 55ad25f9d5de..d1dd94cc700a 100644 --- a/src/Illuminate/Contracts/Routing/UrlRoutable.php +++ b/src/Illuminate/Contracts/Routing/UrlRoutable.php @@ -19,10 +19,10 @@ public function getRouteKey(); public function getRouteKeyName(); /** - * Retrieve model for route model binding. + * Retrieve the model for a bound value. * - * @param mixed $routeKey - * @return null|\Illuminate\Database\Eloquent\Model + * @param mixed $value + * @return \Illuminate\Database\Eloquent\Model|null */ - public function resolveRouteBinding($routeKey); + public function resolveRouteBinding($value); } diff --git a/src/Illuminate/Database/Eloquent/Model.php b/src/Illuminate/Database/Eloquent/Model.php index f456dce7c633..b683c04e34d8 100644 --- a/src/Illuminate/Database/Eloquent/Model.php +++ b/src/Illuminate/Database/Eloquent/Model.php @@ -1252,10 +1252,10 @@ public function getRouteKeyName() } /** - * Retrieve model for route model binding. + * Retrieve the model for a bound value. * - * @param mixed $routeKey - * @return null|\Illuminate\Database\Eloquent\Model + * @param mixed $value + * @return \Illuminate\Database\Eloquent\Model|null */ public function resolveRouteBinding($routeKey) {