class Illuminate / Routing / ViewController
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

ViewController

Extends

Properties

protected

$response ResponseFactory

The response factory implementation.

Default: null

Methods

public

__construct ( ResponseFactory $response ) : void

Create a new controller instance.

Parameters

public

__invoke ( $args ) : Response

Invoke the controller method.

Parameters

  • $args mixed
public

callAction ( $method , $parameters ) : Symfony\...\Response

Execute an action on the controller.

Parameters

  • $method string
  • $parameters array