public static function imgUrl($file, $folder = false)
    {
        $src = '@web/images/';
        if ($folder !== false) {
            $src .= $folder . '/';
        }
        $src .= $file;

        return Url::to($src);
    }
public static function imgUrl($file, $folder = false)
    {
        $src = '@web/images/';
        if ($folder !== false) {
            $src .= $folder . '/';
        }
        $src .= $file;

        return Url::to($src);
    }
public static function imgUrl ( $ file , $ folder = false ) { $ src = '@web/images/' ; if ( $ folder !== false ) { $ src .= $ folder . '/' ; } $ src .= $ file ; return Url :: to ( $ src ) ; }
Get image url by filename
@param $file
@param bool $folder
@return string
Get image url by filename