protected function getDefaultBindingResolver($instance, $value)
    {
        $instance = $instance->where($instance->getRouteKeyName(), $value);

        // Only the 'firstOrFail' is included in the binding callable to exclude the
        // exceptions of undefined methods (where, getRouteKeyName) from the errorHandler
        return function () use ($instance) {
            return $instance->firstOrFail();
        };
    }