Methods summary
public
|
#
__construct( )
Create a new Controller instance.
Create a new Controller instance.
|
public static
array
|
#
detect( string $bundle = DEFAULT_BUNDLE, string $directory = null )
Detect all of the controllers for a given bundle.
Detect all of the controllers for a given bundle.
Parameters
- $bundle
string $bundle
- $directory
string $directory
Returns
array
|
public static
Laravel\Response
|
#
call( string $destination, array $parameters = array() )
Call an action method on a controller.
Call an action method on a controller.
$response = Controller::call('user@show');
$response = Controller::call('user.admin@profile', array($username));
Parameters
- $destination
string $destination
- $parameters
array $parameters
Returns
|
protected static
array
|
#
references( string & $destination, array & $parameters )
Replace all back-references on the given destination.
Replace all back-references on the given destination.
Parameters
- $destination
string $destination
- $parameters
array $parameters
Returns
array
|
public static
Laravel\Routing\Controller
|
#
resolve( string $bundle, string $controller )
Resolve a bundle and controller name to a controller instance.
Resolve a bundle and controller name to a controller instance.
Parameters
- $bundle
string $bundle
- $controller
string $controller
Returns
|
protected static
boolean
|
#
load( string $bundle, string $controller )
Load the file for a given controller.
Load the file for a given controller.
Parameters
- $bundle
string $bundle
- $controller
string $controller
Returns
boolean
|
protected static
string
|
#
format( string $bundle, string $controller )
Format a bundle and controller identifier into the controller's class
name.
Format a bundle and controller identifier into the controller's class
name.
Parameters
- $bundle
string $bundle
- $controller
string $controller
Returns
string
|
public
Laravel\Response
|
#
execute( string $method, array $parameters = array() )
Execute a controller method with the given parameters.
Execute a controller method with the given parameters.
Parameters
- $method
string $method
- $parameters
array $parameters
Returns
|
public
mixed
|
#
response( string $method, array $parameters = array() )
Execute a controller action and return the response.
Execute a controller action and return the response.
Unlike the "execute" method, no filters will be run and the response from the
controller action will not be changed in any way before it is returned to the
consumer.
Parameters
- $method
string $method
- $parameters
array $parameters
Returns
mixed
|
protected
Laravel\Routing\Filter_Collection
|
#
filter( string $event, string|array $filters, mixed $parameters = null )
Register filters on the controller's methods.
Register filters on the controller's methods.
$this->filter('before', 'foo');
$this->filter('after', 'foo|bar')->only(array('user', 'profile'));
Parameters
- $event
string $event
- $filters
string|array $filters
- $parameters
mixed $parameters
Returns
|
protected
array
|
#
filters( string $event, string $method )
Get an array of filter names defined for the destination.
Get an array of filter names defined for the destination.
Parameters
- $event
string $event
- $method
string $method
Returns
array
|
public
Laravel\View
|
#
layout( )
Create the layout that is assigned to the controller.
Create the layout that is assigned to the controller.
Returns
|
public
|
#
before( )
This function is called before the action is executed.
This function is called before the action is executed.
|
public
|
#
after( Laravel\Response $response )
This function is called after the action is executed.
This function is called after the action is executed.
Parameters
|
public
|
#
__call( mixed $method, mixed $parameters )
Magic Method to handle calls to undefined controller functions.
Magic Method to handle calls to undefined controller functions.
|
public
|
#
__get( mixed $key )
Dynamically resolve items from the application IoC container.
Dynamically resolve items from the application IoC container.
$mailer = $this->mailer;
$mailer = IoC::resolve('mailer');
|