LaravelBook\Laravel4Powerpack\HTML::style PHP Method

style() public method

If no media type is selected, "all" will be used
public style ( string $url, array $attributes = [] ) : string
$url string
$attributes array
return string
    public function style($url, $attributes = array())
    {
        $defaults = array('media' => 'all', 'type' => 'text/css', 'rel' => 'stylesheet');
        $attributes = $attributes + $defaults;
        $url = $this->url->to($url);
        return '<link href="' . $url . '"' . $this->attributes($attributes) . '>' . PHP_EOL;
    }