final class DefineRoute implements Actionable

Calls a test method with the router instance for route definition.

Methods

__construct(string $method)

Construct a new attribute.

mixed
handle(Application $app, Closure $action)

Handle the attribute.

Details

at line 22
__construct(string $method)

Construct a new attribute.

Parameters

string $method

at line 32
mixed handle(Application $app, Closure $action)

Handle the attribute.

Parameters

Application $app
Closure $action

Return Value

mixed