class WorkbenchController extends Controller

Properties

protected array $middleware

The middleware registered on the controller.

from  Controller

Methods

middleware(Closure|array|string $middleware, array $options = [])

Register middleware on the controller.

array
getMiddleware()

Get the middleware assigned to the controller.

mixed
callAction(string $method, array $parameters)

Execute an action on the controller.

mixed
__call(string $method, array $parameters)

Handle calls to missing methods on the controller.

string|null
redirectToAfterLoggedIn()

Get redirect to path after logged in.

start(Request $request)

Start page.

array
user(string|null $guard = null)

Retrieve the authenticated user identifier and class name.

login(string $userId, string|null $guard = null)

Login using the given user ID / email.

logout(string|null $guard = null)

Log the user out of the application.

Details

in Controller at line 21
ControllerMiddlewareOptions middleware(Closure|array|string $middleware, array $options = [])

Register middleware on the controller.

Parameters

Closure|array|string $middleware
array $options

Return Value

ControllerMiddlewareOptions

in Controller at line 36
array getMiddleware()

Get the middleware assigned to the controller.

Return Value

array

in Controller at line 44
mixed callAction(string $method, array $parameters)

Execute an action on the controller.

Parameters

string $method
array $parameters

Return Value

mixed

in Controller at line 56
mixed __call(string $method, array $parameters)

Handle calls to missing methods on the controller.

Parameters

string $method
array $parameters

Return Value

mixed

Exceptions

BadMethodCallException

in Controller at line 15
protected string|null redirectToAfterLoggedIn()

Get redirect to path after logged in.

Return Value

string|null

at line 20
RedirectResponse start(Request $request)

Start page.

Parameters

Request $request

Return Value

RedirectResponse

at line 38
array user(string|null $guard = null)

Retrieve the authenticated user identifier and class name.

Parameters

string|null $guard

Return Value

array

at line 55
RedirectResponse login(string $userId, string|null $guard = null)

Login using the given user ID / email.

Parameters

string $userId
string|null $guard

Return Value

RedirectResponse

at line 80
RedirectResponse logout(string|null $guard = null)

Log the user out of the application.

Parameters

string|null $guard

Return Value

RedirectResponse