interface Illuminate / Contracts / Routing / UrlGenerator
You are viewing an older version of the documentation. For the latest, please visit master documentation.

UrlGenerator

Methods

public

current ( ) : string

Get the current URL for the request.

public

previous ( $fallback ) : string

Get the URL for the previous request.

Parameters

  • $fallback mixed
public

to ( $path , $extra , $secure ) : string

Generate an absolute URL to the given path.

Parameters

  • $path string
  • $extra mixed
  • $secure bool|null
public

secure ( $path , $parameters ) : string

Generate a secure, absolute URL to the given path.

Parameters

  • $path string
  • $parameters array
public

asset ( $path , $secure ) : string

Generate the URL to an application asset.

Parameters

  • $path string
  • $secure bool|null
public

route ( $name , $parameters , $absolute ) : string

Get the URL to a named route.

Parameters

  • $name string
  • $parameters mixed
  • $absolute bool
public

action ( $action , $parameters , $absolute ) : string

Get the URL to a controller action.

Parameters

  • $action string|array
  • $parameters mixed
  • $absolute bool
public

setRootControllerNamespace ( $rootNamespace ) : $this

Set the root controller namespace.

Parameters

  • $rootNamespace string