/** * Get a filename for compiled file. * * @param string $locale * * @return string */ public function filename($locale = null) { if ($locale === null) { $locale = $this->lang->getLocale(); } return $this->basePath . '/' . $locale . '.php'; }
/** * @return array */ public function data() { return ['locale' => config('app.locale', 'en'), 'brandName' => $this->lang->tryTranslate(config('cruddy.brand', 'Cruddy')), 'uri' => config('cruddy.uri', 'backend'), 'entities' => $this->entities->available(), 'lang' => $this->lang->ui(), 'permissions' => $this->permissions()]; }