Contents

Dashboard\Controllers\Index

Overview

Index controller for the dashboard

Extends
Implements
  • Larajax\Contracts\AjaxControllerInterface

Public Properties

public array $implement

Extensions implemented by this controller.

public array $dashConfig

DashController configuration.

public array $requiredPermissions

requiredPermissions to view this page.

See Also
  • [checkPermissionRedirect()](checkPermissionRedirect())

public string $turboRouter

Show inherited public properties

Inherited Public Properties

Protected Properties

protected object $listAllDashboardsCache

Show inherited protected properties

Inherited Protected Properties


Public Methods

public __construct()

public __construct(): void

__construct the controller

public dashGetConfig()

public dashGetConfig(): void

dashGetConfig dynamically specifies the dash widget config from the dashboard model configuration.

public index()

public index($code = null): void

index controller action

Show inherited public methods

Inherited Public Methods

Protected Methods

protected checkPermissionRedirect()

protected checkPermissionRedirect(): void

checkPermissionRedirect custom permissions check that will redirect to the next available menu item, if permission to this page is denied.

protected listAllDashboards()

protected listAllDashboards(): void

protected listDefinedDashboards()

protected listDefinedDashboards(): array 

listDefinedDashboards returns the dashboards defined by the controller configuration, followed by those registered by plugins

protected syncAllDashboards()

protected syncAllDashboards(): void

Show inherited protected methods

Inherited Protected Methods