/** * Create a HTML image input element. * * @param string $url * @param string $name * @param array $attributes * * @return string */ public function image($url, $name = null, $attributes = []) { $attributes['src'] = $this->url->asset($url); return $this->input('image', $name, null, $attributes); }
/** * Generate a HTML link to an asset. * * @param string $url * @param string $title * @param array $attributes * @param bool $secure * * @return string */ public function linkAsset($url, $title = null, $attributes = [], $secure = null) { $url = $this->url->asset($url, $secure); return $this->link($url, $title ?: $url, $attributes, $secure); }