UrlGenerator (Contracts)
UrlGenerator
interface UrlGenerator (View source)
Methods
string | to( string $path, mixed $extra = array(), bool $secure = null) Generate a absolute URL to the given path. | |
string | secure( string $path, array $parameters = array()) Generate a secure, absolute URL to the given path. | |
string | asset( string $path, bool $secure = null) Generate a URL to an application asset. | |
string | route( string $name, mixed $parameters = array(), bool $absolute = true) Get the URL to a named route. | |
string | action( string $action, mixed $parameters = array(), bool $absolute = true) Get the URL to a controller action. | |
$this | setRootControllerNamespace( string $rootNamespace) Set the root controller namespace. |
Details
string to( string $path, mixed $extra = array(), bool $secure = null)
Generate a absolute URL to the given path.
string secure( string $path, array $parameters = array())
Generate a secure, absolute URL to the given path.
string asset( string $path, bool $secure = null)
Generate a URL to an application asset.
string route( string $name, mixed $parameters = array(), bool $absolute = true)
Get the URL to a named route.
string action( string $action, mixed $parameters = array(), bool $absolute = true)
Get the URL to a controller action.
$this setRootControllerNamespace( string $rootNamespace)
Set the root controller namespace.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.1/Illuminate/Contracts/Routing/UrlGenerator.html