/** * Get Languages. * * @return array */ protected function getLanguages() { $languages = []; $coreLanguagesPath = File::directories(core_path('resources/lang')); $customLanguagesPath = File::directories(base_path('resources/lang/core')); $paths = array_merge($coreLanguagesPath, $customLanguagesPath); foreach ($paths as $path) { $code = basename($path); if (isset($languages[$code])) { continue; } $languageName = Language::whereCode(strtoupper($code))->first(); $languages[$code] = $languageName ? $languageName->name : ucfirst($code); } return $languages; }
/** * Get theme path. */ protected function getThemePath() { return core_path() . '/resources'; }
/** * Get the path to the zedx core directory. * * @return string */ function core_src_path($path = '') { $root = core_path('src'); return $path ? $root . DIRECTORY_SEPARATOR . $path : $root; }
public function adminer() { require_once core_path() . '/views/debug/extra/adminer.php'; }
<?php return ['paths' => [realpath(base_path('resources/views')), realpath(core_path('resources/views'))], 'compiled' => realpath(storage_path('framework/views'))];