예제 #1
0
파일: Compiler.php 프로젝트: guratr/cruddy
 /**
  * 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';
 }
예제 #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()];
 }