public function urlWithParams($path = null, $qs = [], $secure = null)
    {
        $url = app('url')->to($path, $secure);
        if (count($qs)){
            foreach($qs as $key => $value){
                $qs[$key] = sprintf('%s=%s',$key, urlencode($value));
            }
            $url = sprintf('%s?%s', $url, implode('&', $qs));
        }
        return $url;
    }
public function urlWithParams($path = null, $qs = [], $secure = null)
    {
        $url = app('url')->to($path, $secure);
        if (count($qs)){
            foreach($qs as $key => $value){
                $qs[$key] = sprintf('%s=%s',$key, urlencode($value));
            }
            $url = sprintf('%s?%s', $url, implode('&', $qs));
        }
        return $url;
    }
public function urlWithParams ( $ path = null , $ qs = [ ] , $ secure = null ) { $ url = app ( 'url' ) -> to ( $ path , $ secure ) ; if ( count ( $ qs ) ) { foreach ( $ qs as $ key => $ value ) { $ qs [ $ key ] = sprintf ( '%s=%s' , $ key , urlencode ( $ value ) ) ; } $ url = sprintf ( '%s?%s' , $ url , implode ( '&' , $ qs ) ) ; } return $ url ; }
Laravel route with query strings
@param  string $path
@param  array  $qs
@param  boolean $secure
@return string
Laravel route with query strings