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();
        };
    }
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();
        };
    }
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 ( ) ; } ; }
Get the default binding resolver callable

@param  string $instance
@param  string $value

@return \Closure
Get the default binding resolver callable