src/HtmlBuilder.php
public function script($url, array $attributes = [], $secure = null)
    {
        return Elements\Element::withTag('script')
            ->attribute('src', $this->url->asset($url, $secure))
            ->attributes($attributes)
            ->render();
    }
public function script($url, array $attributes = [], $secure = null)
    {
        return Elements\Element::withTag('script')
            ->attribute('src', $this->url->asset($url, $secure))
            ->attributes($attributes)
            ->render();
    }
Generate a link to a JavaScript file.

@param  string  $url
@param  array   $attributes
@param  bool    $secure

@return \Illuminate\Support\HtmlString