Configurations Last updated: 2023-09-21

After Setting up Your Dashboard 

You will see that it has published the following files

example-app Project
-app
// New Folder 
-Dash
-DashResources.php
 -Dashboard
   -Help.php
 -Metrics
  -Values/AllAdminGroupRoles.php
  -Values/AllAdminGroups.php
  -Values/AllAdmins.php
  -Values/AllUsers.php
 -Resources
  -AdminGroupRoles.php
  -AdminGroups.php
  -Admins.php
  -Users.php 	
-Models
  -User.php // Overwrite to User Model Some Methods and custom fields	
-Providers
   -DashServiceProvider.php   // To Append Your Resources,Dashboard,Filters,Actions Object
-config
	-dash.php
-resource
 -lang
  -ar
   -dash.php
  -en	
   -dash.php
-database
 -migrations
  -2014_10_11_9999998_create_admin_groups_table.php
  -2014_10_11_9999999_create_admin_group_roles_table.php
  -2014_10_12_000000_create_users_table.php // Overwrite and addtional columns 
  -2021_02_18_102130_create_filemanager_table.php // using with dropzone

You will not need any additional Configurations . All you have to do is knowing these basic paths

 that you may need to change in the future

 

Let's find out about Dash's configuration file config/dash.php

<?php
return [
	/**
	 * App NAME
	 * @param string
	 */
	'APP_NAME' => env('APP_NAME', 'dash'),

    /**
	 *  FILE SYSTEM DISK DRIVER YOU CAN Use public,s3
	 * @param string
	 */
    'FILESYSTEM_DISK'=>env('FILESYSTEM_DISK','public'),

    /**
	 * DARK MODE Style with  on , off
	 * @param string
	 */
	'DARK_MODE' => env('DASH_DARK_MODE','on'),


    /**
	 * CHECK  VERSION from phpdash.com with  on , off
	 * @param string
	 */
	'CHECK_VERSION_MODE' => env('CHECK_VERSION_MODE','off'),


	/**
	 * App PATH IN DASHBOARD dont leave this is empty default is dash
	 * @param string
	 */
	'DASHBOARD_PATH' => env('DASHBOARD_PATH', 'dash'),

	/**
	 * The key to getting updates
	 * @param string
	 */
	'DASH_ACCESS_KEY' => env('DASH_ACCESS_KEY', ''),

	/**
	 * DASHBOARD ICON you can put url or leave it empty
	 * @param string
	 */
    'DASHBOARD_ICON' => env('APP_URL').'/dashboard/assets/img/dash/PNG/dash.png',

	/**
	 * APP LANGUAGES Availabil Default is ar|en
	 * @param array
	 */
	'DASHBOARD_LANGUAGES' => [
		'en'                 => 'English',
		//'ar'                 => 'العربية',
	],
	/**
	 * DEFAULT LANGUAGE IN DASHBOARD
	 * @param string
	 */
	'DEFAULT_LANG' => env('DEFAULT_LANG', 'en'),

	/**
	 * GUARD default to login dashboard by this driver
	 * @param array
	 */
	'GUARD'      => [
		'dash'      => [
			'driver'   => 'session',
			'provider' => 'users',
		],
	],

	// 'copyright'=>[
	// 	'link'=>'',
	// 	'copyright_text'=>''
	// ],

	/**
	 * don't change anything here this is a default values for dash
	 * @param functions
	 */
	'THEME_PATH'            => base_path('dash/src/resources/views'),
	'LOCALE_PATH'           => base_path('dash/src/resources/lang'),
	'DATATABLE_LOCALE_PATH' => base_path('dash/src/resources/lang'),
	'ROUTE_PATH'            => base_path('dash/src/routes/routelist.php'),

];