Request::session()

Store session() Get the session associated with the request. Return Value Store Exceptions RuntimeException

Request::server()

string|array server(string $key = null, string|array|null $default = null) Retrieve a server variable from the request. Parameters string $key string|array|null $default Return Value string|array

Request::segments()

array segments() Get all of the segments for the request path. Return Value array

Request::segment()

string|null segment(int $index, string|null $default = null) Get a segment from the URI (1 based index). Parameters int $index string|null $default Return Value string|null

Request::secure()

bool secure() Determine if the request is over HTTPS. Return Value bool

Request::route()

Route|object|string route(string|null $param = null) Get the route handling the request. Parameters string|null $param Return Value Route|object|string

Request::root()

string root() Get the root URL for the application. Return Value string

Request::replace()

void replace(array $input) Replace the input for the current request. Parameters array $input Return Value void

Request::query()

string|array query(string $key = null, string|array|null $default = null) Retrieve a query string item from the request. Parameters string $key string|array|null $default Return Value string|array

Request::prefers()

string|null prefers(string|array $contentTypes) Return the most suitable content type from the given array based on content negotiation. Parameters string|array $contentTypes Return Value string|null