script() public method

Generate a link to a JavaScript file.
public script ( string $url, array $attributes = [], boolean $secure = null ) : Illuminate\Support\HtmlString
$url string
$attributes array
$secure boolean
return Illuminate\Support\HtmlString
Exemplo n.º 1
0
 /**
  * Generate a link to a JavaScript file.
  *
  * @param  string  $url
  * @param  array   $attributes
  * @param  bool    $secure
  * @return string
  */
 public function script($url, $attributes = array(), $secure = null)
 {
     return $this->html->script($this->assetUrl($url), $attributes, $secure);
 }
Exemplo n.º 2
0
 /**
  * Generate a link to a JavaScript file.
  *
  * @param string $url
  * @param array $attributes
  * @param bool $secure
  * @return \Illuminate\Support\HtmlString 
  * @static 
  */
 public static function script($url, $attributes = array(), $secure = null)
 {
     return \Collective\Html\HtmlBuilder::script($url, $attributes, $secure);
 }
 /**
  * Create <script> tag for a reCAPTCHA widget
  *
  * @param  array $options
  *
  * @return string
  */
 public function script()
 {
     return $this->html->script($this->jsApi);
 }