Update v1.0.6
This commit is contained in:
69
vendor/illuminate/html/helpers.php
vendored
Normal file
69
vendor/illuminate/html/helpers.php
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
<?php
|
||||
|
||||
if ( ! function_exists('link_to'))
|
||||
{
|
||||
/**
|
||||
* Generate a HTML link.
|
||||
*
|
||||
* @param string $url
|
||||
* @param string $title
|
||||
* @param array $attributes
|
||||
* @param bool $secure
|
||||
* @return string
|
||||
*/
|
||||
function link_to($url, $title = null, $attributes = array(), $secure = null)
|
||||
{
|
||||
return app('html')->link($url, $title, $attributes, $secure);
|
||||
}
|
||||
}
|
||||
|
||||
if ( ! function_exists('link_to_asset'))
|
||||
{
|
||||
/**
|
||||
* Generate a HTML link to an asset.
|
||||
*
|
||||
* @param string $url
|
||||
* @param string $title
|
||||
* @param array $attributes
|
||||
* @param bool $secure
|
||||
* @return string
|
||||
*/
|
||||
function link_to_asset($url, $title = null, $attributes = array(), $secure = null)
|
||||
{
|
||||
return app('html')->linkAsset($url, $title, $attributes, $secure);
|
||||
}
|
||||
}
|
||||
|
||||
if ( ! function_exists('link_to_route'))
|
||||
{
|
||||
/**
|
||||
* Generate a HTML link to a named route.
|
||||
*
|
||||
* @param string $name
|
||||
* @param string $title
|
||||
* @param array $parameters
|
||||
* @param array $attributes
|
||||
* @return string
|
||||
*/
|
||||
function link_to_route($name, $title = null, $parameters = array(), $attributes = array())
|
||||
{
|
||||
return app('html')->linkRoute($name, $title, $parameters, $attributes);
|
||||
}
|
||||
}
|
||||
|
||||
if ( ! function_exists('link_to_action'))
|
||||
{
|
||||
/**
|
||||
* Generate a HTML link to a controller action.
|
||||
*
|
||||
* @param string $action
|
||||
* @param string $title
|
||||
* @param array $parameters
|
||||
* @param array $attributes
|
||||
* @return string
|
||||
*/
|
||||
function link_to_action($action, $title = null, $parameters = array(), $attributes = array())
|
||||
{
|
||||
return app('html')->linkAction($action, $title, $parameters, $attributes);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user