芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/portpulselogistics.com/app/Models/GoogleSettings.php
array( 'label' => 'settings.google_map', 'type' => 'array_boolen', 'value' => ($settings->google_map ? $settings->google_map : ''), 'array' => array( 'google_map_key' => [ 'label' => 'settings.google_map_key', 'type' => 'string', 'value' => json_decode($settings->google_map, true)['google_map_key'] ?? '', 'required' => true ], ) ), ]; $all_modules = array_map('basename', \Illuminate\Support\Facades\File::directories(base_path('Modules')) ); $google_settings = array(); foreach ($all_modules as $module_name) { $module_name = strtolower($module_name); if(check_module($module_name)){ $google_settings = config("$module_name.googleSettings"); if($google_settings) $fields = array_merge($fields,$google_settings); } } return $fields; } public static function scripts(): string { $scripts = ' '; return $scripts; } public static function group(): string { return 'google'; } public static function encrypted(): array { return [ ]; } }