Settings
This document outlines the various configuration options available for the Admin Panel package. These settings allow you to customize the appearance, behavior, and functionality of the admin panel to suit your application's needs.
Settings descriptions
Theme
theme: Specifies the theme of the admin panel.Type:
stringDefault:
admin-lteDescription: Choose the visual theme for the admin panel interface. Currently,
admin-lteis the default theme.
Mode Settings
dark_mode: Enables or disables the dark mode by default for the administrator.Type:
booleanDefault:
trueDescription: When set to
true, the admin panel will use dark mode as the default theme.
lang_mode: Enables or disables language mode for the admin panel.Type:
booleanDefault:
trueDescription: Turn on this option to enable language support in the admin panel.
Languages
languages: Defines the languages supported by the admin panel.Type:
arrayDefault:
['en', 'ua', 'ru']Description: List of language codes that the admin panel supports for localization.
Home Route
home-route: Specifies the default home route for the admin panel.Type:
stringDefault:
admin.dashboardDescription: Define the route name that users are redirected to after logging into the admin panel.
Application Namespace
app_namespace: The namespace for the Admin application.Type:
stringDefault:
App\AdminDescription: Specify the namespace used by the Admin application classes.
Paths
paths: Directories used by the Admin package.Type:
arrayDescription: Configure the application and view directories for the Admin package.
Route Configuration
route: Global route configurations for the admin panel.Type:
arrayDescription: Includes settings for domain, prefix, and name for admin panel routes.
Default Actions
action: Defines default actions for the admin panel.Type:
arrayDescription: Map actions to specific controllers and methods.
Two-Factor Authentication (2FA)
force-2fa: Enforces Two-Factor Authentication for all admin users.Type:
booleanDefault:
falseDescription: When enabled, all users must use 2FA to access the admin panel.
Authentication
auth: Authentication settings for admin pages.Type:
arrayDescription: Configure authentication guards and providers for the admin panel.
Upload Settings
upload: Configuration for file uploads in the admin panel.Type:
arrayDescription: Set up the disk and directory paths for image and file uploads.
Disks
disks: Filesystem disks used by the admin panel.Type:
arrayDescription: Configure storage disks for admin file uploads.
Footer
footer: Custom HTML content for the admin panel footer.Type:
stringDescription: Allows for custom branding or copyright information in the footer.