embed::youtube($url, $attr = array())

Embeds a youtube video by passing the Youtube url

  • $url (string)
    Youtube url i.e. http://www.youtube.com/watch?v=d9NF2edxy-M
  • $attr (array)
    Additional attributes for the iframe
  • return (string)