class TemplatesController extends Controller (View source)

Traits

AuthorizesRequests
DispatchesJobs
ValidatesRequests

Properties

protected Factory $viewFactory
protected ResponseFactory $responseFactory

Methods

__construct(Factory $viewFactory, ResponseFactory $responseFactory)

No description

void
removeMiddleware(string $middleware)

Attempts to unset the given middleware.

View
index()

No description

View
view(string $view)

No description

JsonResponse
xhr($view)

No description

Details

__construct(Factory $viewFactory, ResponseFactory $responseFactory)

No description

Parameters

Factory $viewFactory
ResponseFactory $responseFactory

void removeMiddleware(string $middleware)

Attempts to unset the given middleware.

Parameters

string $middleware

Return Value

void

View index()

No description

Return Value

View

View view(string $view)

No description

Parameters

string $view

Return Value

View

JsonResponse xhr($view)

No description

Parameters

$view

Return Value

JsonResponse

Exceptions

Throwable