public function resolveRouteBinding($routeKey)
    {
        if (method_exists($this->wrappedObject, 'resolveRouteBinding') && is_callable([$this->wrappedObject, 'resolveRouteBinding'])) {
            return $this->wrappedObject->resolveRouteBinding($routeKey);
        }

        return $this->wrappedObject->where($this->wrappedObject->getRouteKeyName(), $routeKey)->first();
    }
public function resolveRouteBinding($routeKey)
    {
        if (method_exists($this->wrappedObject, 'resolveRouteBinding') && is_callable([$this->wrappedObject, 'resolveRouteBinding'])) {
            return $this->wrappedObject->resolveRouteBinding($routeKey);
        }

        return $this->wrappedObject->where($this->wrappedObject->getRouteKeyName(), $routeKey)->first();
    }
public function resolveRouteBinding ( $ routeKey ) { if ( method_exists ( $ this -> wrappedObject , 'resolveRouteBinding' ) && is_callable ( [ $ this -> wrappedObject , 'resolveRouteBinding' ] ) ) { return $ this -> wrappedObject -> resolveRouteBinding ( $ routeKey ) ; } return $ this -> wrappedObject -> where ( $ this -> wrappedObject -> getRouteKeyName ( ) , $ routeKey ) -> first ( ) ; }
Retrieve model for route model binding.

@param mixed $routeKey

@return mixed
Retrieve model for route model binding .