RouteAction

class RouteAction (View source)

Methods

static array parse(string $uri, mixed $action)

Parse the given action into an array.

static array missingAction(string $uri)

Get an action for a route that has no action.

static callable findCallable(array $action)

Find the callable in an action array.

static string makeInvokable(string $action)

Make an action for an invokable controller.

Details

static array parse(string $uri, mixed $action)

Parse the given action into an array.

Parameters

string $uri
mixed $action

Return Value

array

static protected array missingAction(string $uri)

Get an action for a route that has no action.

Parameters

string $uri

Return Value

array

static protected callable findCallable(array $action)

Find the callable in an action array.

Parameters

array $action

Return Value

callable

static protected string makeInvokable(string $action)

Make an action for an invokable controller.

Parameters

string $action

Return Value

string

Exceptions

UnexpectedValueException

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