W3cubDocs

/Laravel 5.1

ControllerInspector

class ControllerInspector (View source)

Methods

array getRoutable( string $controller, string $prefix)

Get the routable methods for a controller.

bool isRoutable( ReflectionMethod $method)

Determine if the given controller method is routable.

array getMethodData( ReflectionMethod $method, string $prefix)

Get the method data for a given method.

string getVerb( string $name)

Extract the verb from a controller action.

string getPlainUri( string $name, string $prefix)

Determine the URI from the given method name.

string addUriWildcards( string $uri)

Add wildcards to the given URI.

Details

array getRoutable( string $controller, string $prefix)

Get the routable methods for a controller.

Parameters

string $controller
string $prefix

Return Value

array

bool isRoutable( ReflectionMethod $method)

Determine if the given controller method is routable.

Parameters

ReflectionMethod $method

Return Value

bool

array getMethodData( ReflectionMethod $method, string $prefix)

Get the method data for a given method.

Parameters

ReflectionMethod $method
string $prefix

Return Value

array

string getVerb( string $name)

Extract the verb from a controller action.

Parameters

string $name

Return Value

string

string getPlainUri( string $name, string $prefix)

Determine the URI from the given method name.

Parameters

string $name
string $prefix

Return Value

string

string addUriWildcards( string $uri)

Add wildcards to the given URI.

Parameters

string $uri

Return Value

string

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.1/Illuminate/Routing/ControllerInspector.html