protected function getPath($group, $locale) { // Is module? if (strpos($group, '::')) { $parts = explode('::', $group); $path = $this->app->path() . '/Modules/' . ucfirst($parts[0]) . '/lang/' . $locale . '/' . $parts[1] . '.php'; } else { $path = $this->app->langPath() . '/' . $locale . '/' . $group . '.php'; } return $path; }
/** * Get the path to the application "app" directory. * * @return string * @static */ public static function path() { return \Illuminate\Foundation\Application::path(); }
/** * Get scanned modules paths. * * @return array */ public function getScanPaths() { return ['core' => $this->app->path() . '/Core/', 'modules' => $this->app->path() . '/Modules/']; }