The asset function generates a URL for an asset using the current scheme of the request (HTTP or HTTPS):
<?php $url = asset('img/photo.jpg');
<?php     public static function vendorAssetUrl($url = '/')

    {

        return asset(URL::tidy('vendor/'.$url));

    }



    public static function cpAssetUrl($url = '/')