Skip to content

Instantly share code, notes, and snippets.

@tsuemura
Created March 31, 2018 18:20
Show Gist options
  • Save tsuemura/a926b85c275038bd6dec8c952e26b2b7 to your computer and use it in GitHub Desktop.
Save tsuemura/a926b85c275038bd6dec8c952e26b2b7 to your computer and use it in GitHub Desktop.
replace full url to Laravel's "asset()" helper
('https?://[\w/:%#\$&\?\(\)~\.=\+\-]+/)(\S*') // from
'{{ asset('/$2) }} // to
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment