Skip to content

marko/admin-panel-latte

Latte templates for marko/admin-panel --- provides the login, dashboard, layout, and partial views rendered by the Latte engine. Installing this package is all that is needed to supply admin panel templates when using marko/view-latte; no additional configuration is required.

Terminal window
composer require marko/admin-panel-latte

Requires marko/admin-panel and marko/view-latte.

Install the package alongside marko/admin-panel and marko/view-latte:

Terminal window
composer require marko/admin-panel marko/admin-panel-latte marko/view-latte

Templates are discovered automatically via the extra.marko.templates_for declaration in the package’s composer.json. The admin-panel:: template namespace resolves to the views in this package --- for example, admin-panel::dashboard/index renders resources/views/dashboard/index.latte.

Template nameFile
admin-panel::auth/loginresources/views/auth/login.latte
admin-panel::layout/baseresources/views/layout/base.latte
admin-panel::dashboard/indexresources/views/dashboard/index.latte
admin-panel::partials/sidebarresources/views/partials/sidebar.latte
admin-panel::partials/flashresources/views/partials/flash.latte

Override any template by placing a file with the same path under your own module’s resources/views/admin-panel/ directory:

mymodule/
resources/
views/
admin-panel/
dashboard/
index.latte # Overrides the default dashboard