protected function getLangsDir($name = null) { if (!$name) { // core language return base_path('resources') . DIRECTORY_SEPARATOR . 'lang'; } return base_path('plugins') . DIRECTORY_SEPARATOR . $name . DIRECTORY_SEPARATOR . 'langs'; }