예제 #1
0
 /**
  * Create a HTML image input element.
  *
  * @param  string  $url
  * @param  string  $name
  * @param  array   $attributes
  * @return string
  */
 public function image($url, $name = null, $attributes = array())
 {
     $attributes['src'] = $this->url->asset($url);
     return $this->input('image', $name, null, $attributes);
 }
예제 #2
0
 /**
  * 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 = array(), $secure = null)
 {
     $url = $this->url->asset($url, $secure);
     return $this->link($url, $title ?: $url, $attributes, $secure);
 }