/** * Get the videoId from a provided youtube url * * @param $url * @return mixed */ public function getId($url) { $id = Youtube::parseVIdFromURL($url); $this->getVideo($id); return $id; }