class
Illuminate
/
Routing
/
Controller
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
abstract
Controller
Properties
protected
$middleware array
The middleware registered on the controller.
Default: []
Methods
public
middleware ( $middleware , array $options ) : ControllerMiddlewareOptions
Register middleware on the controller.
Parameters
- $middleware Closure |array|string
- $options array
public
getMiddleware ( ) : array
Get the middleware assigned to the controller.
public
callAction ( $method , $parameters ) : Symfony\...\Response
Execute an action on the controller.
Parameters
- $method string
- $parameters array
public
__call ( $method , $parameters ) : mixed
Handle calls to missing methods on the controller.
Parameters
- $method string
- $parameters array