Table of Contents
-
$attributes
: array<string|int, mixed>
-
$fallback
: mixed
-
$routes
: array<string|int, mixed>
-
__construct()
: mixed
-
addRoute()
: mixed
-
apiResource()
: mixed
-
delete()
: Route
-
fallback()
: mixed
-
get()
: Route
-
getAttributes()
: array<string|int, mixed>
-
getInstance()
: self
-
getRoutes()
: array<string|int, mixed>
-
group()
: mixed
-
head()
: Route
-
patch()
: Route
-
post()
: Route
-
put()
: Route
-
registerRoutes()
: mixed
-
resolveController()
: mixed
-
resolveRoute()
: mixed
-
setAttributes()
: mixed
-
generateRoute()
: Route
$attributes
public
array<string|int, mixed>
$attributes
= ["middleware" => [], "prefix" => "", "name" => ""]
$fallback
public
mixed
$fallback
$routes
public
array<string|int, mixed>
$routes
= ["GET" => [], "POST" => [], "PATCH" => [], "PUT" => [], "DELETE" => [], "HEAD" => []]
__construct()
public
__construct() : mixed
Return values
mixed
—
addRoute()
public
addRoute(string $method, Route $route) : mixed
Parameters
-
$method
: string
-
-
$route
: Route
-
Return values
mixed
—
apiResource()
public
apiResource(string $uri, string $controller) : mixed
Parameters
-
$uri
: string
-
-
$controller
: string
-
Return values
mixed
—
delete()
public
delete(string $uri, array<string|int, mixed>|callable $action) : Route
Parameters
-
$uri
: string
-
-
$action
: array<string|int, mixed>|callable
-
Return values
Route
—
fallback()
public
fallback(array<string|int, mixed>|callable $action) : mixed
Parameters
-
$action
: array<string|int, mixed>|callable
-
Return values
mixed
—
get()
public
get(string $uri, array<string|int, mixed>|callable $action) : Route
Parameters
-
$uri
: string
-
-
$action
: array<string|int, mixed>|callable
-
Return values
Route
—
getAttributes()
public
getAttributes() : array<string|int, mixed>
Return values
array<string|int, mixed>
—
getInstance()
public
static getInstance() : self
Return values
self
—
getRoutes()
public
getRoutes() : array<string|int, mixed>
Return values
array<string|int, mixed>
—
group()
public
group(array<string|int, mixed> $attributes, callable $callback) : mixed
Parameters
-
$attributes
: array<string|int, mixed>
-
-
$callback
: callable
-
Return values
mixed
—
head()
public
head(string $uri, array<string|int, mixed>|callable $action) : Route
Parameters
-
$uri
: string
-
-
$action
: array<string|int, mixed>|callable
-
Return values
Route
—
patch()
public
patch(string $uri, array<string|int, mixed>|callable $action) : Route
Parameters
-
$uri
: string
-
-
$action
: array<string|int, mixed>|callable
-
Return values
Route
—
post()
public
post(string $uri, array<string|int, mixed>|callable $action) : Route
Parameters
-
$uri
: string
-
-
$action
: array<string|int, mixed>|callable
-
Return values
Route
—
put()
public
put(string $uri, array<string|int, mixed>|callable $action) : Route
Parameters
-
$uri
: string
-
-
$action
: array<string|int, mixed>|callable
-
Return values
Route
—
registerRoutes()
public
registerRoutes() : mixed
Return values
mixed
—
resolveController()
public
resolveController(Route $route, array<string|int, mixed> $args) : mixed
Parameters
-
$route
: Route
-
-
$args
: array<string|int, mixed>
-
Return values
mixed
—
resolveRoute()
public
resolveRoute(Request $request) : mixed
Parameters
-
$request
: Request
-
Return values
mixed
—
setAttributes()
public
setAttributes(array<string|int, mixed> $attributes) : mixed
Parameters
-
$attributes
: array<string|int, mixed>
-
Return values
mixed
—
generateRoute()
private
generateRoute(string $method, string $uri, array<string|int, mixed>|callable $action) : Route
Parameters
-
$method
: string
-
-
$uri
: string
-
-
$action
: array<string|int, mixed>|callable
-
Return values
Route
—