mkhleel
3/7/2017 - 9:27 PM

parse yt id

parse yt id

            $url = Input::get('video');
            $var_v = parse_url( $url, PHP_URL_QUERY );

            if ($var_v) {
              parse_str( $var_v, $q );
              $model->video = $q['v'];
            }