We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc0908c commit f948801Copy full SHA for f948801
laravel/url.php
@@ -239,7 +239,7 @@ protected static function convention($action, $parameters)
239
*/
240
public static function to_asset($url, $https = null)
241
{
242
- if (static::valid($url) or starts_with($url, '//')) return $url;
+ if (static::valid($url) or static::valid('http:'.$url)) return $url;
243
244
// If a base asset URL is defined in the configuration, use that and don't
245
// try and change the HTTP protocol. This allows the delivery of assets
0 commit comments