Exemplo n.º 1
0
 /**
  * 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';
 }
Exemplo n.º 2
0
 /**
  * @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()];
 }