src/HtmlBuilder.php
public function style(string $url, array $attributes = [], ?bool $secure = null): Htmlable
    {
        $defaults = ['media' => 'all', 'type' => 'text/css', 'rel' => 'stylesheet'];

        $attributes = \array_merge($defaults, $attributes);

        $attributes['href'] = $this->url->asset($url, $secure);

        return $this->toHtmlString('<link'.$this->attributes($attributes).'>');
    }
public function style(string $url, array $attributes = [], ?bool $secure = null): Htmlable
    {
        $defaults = ['media' => 'all', 'type' => 'text/css', 'rel' => 'stylesheet'];

        $attributes = \array_merge($defaults, $attributes);

        $attributes['href'] = $this->url->asset($url, $secure);

        return $this->toHtmlString('<link'.$this->attributes($attributes).'>');
    }
Generate a link to a CSS file.

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

@return \Illuminate\Contracts\Support\Htmlable