class Admin

Admin Helper

Methods

uri()

Returns the admin URI segment.

string
url(string $path = null, array $parameters = [], bool|null $secure = null)

Generate an absolute URL in context of the Admin

string
baseUrl(string $path = null)

Returns the base admin URL from which this request is executed.

RedirectResponse
redirect(string $path, int $status = 302, array $headers = [], bool|null $secure = null)

Create a new redirect response to a given admin path.

RedirectResponse
redirectGuest($path, int $status = 302, array $headers = [], null $secure = null)

Create a new admin redirect response, while putting the current URL in the session.

RedirectResponse
redirectIntended($path = '/', int $status = 302, array $headers = [], null $secure = null)

Create a new redirect response to the previously intended admin location.

Details

at line 20
uri()

Returns the admin URI segment.

at line 34
string url(string $path = null, array $parameters = [], bool|null $secure = null)

Generate an absolute URL in context of the Admin

Parameters

string $path
array $parameters
bool|null $secure

Return Value

string

at line 46
string baseUrl(string $path = null)

Returns the base admin URL from which this request is executed.

Parameters

string $path

Return Value

string

at line 70
RedirectResponse redirect(string $path, int $status = 302, array $headers = [], bool|null $secure = null)

Create a new redirect response to a given admin path.

Parameters

string $path
int $status
array $headers
bool|null $secure

Return Value

RedirectResponse

at line 85
RedirectResponse redirectGuest($path, int $status = 302, array $headers = [], null $secure = null)

Create a new admin redirect response, while putting the current URL in the session.

Parameters

$path
int $status
array $headers
null $secure

Return Value

RedirectResponse

at line 100
RedirectResponse redirectIntended($path = '/', int $status = 302, array $headers = [], null $secure = null)

Create a new redirect response to the previously intended admin location.

Parameters

$path
int $status
array $headers
null $secure

Return Value

RedirectResponse