Lang::getLocale PHP Method

getLocale() public static method

Get the default locale being used.
public static getLocale ( ) : string
return string
        public static function getLocale()
        {
            return \Illuminate\Translation\Translator::getLocale();
        }

Usage Example

 public function __construct()
 {
     $this->beforeFilter('csrf', array('on' => 'post'));
     $this->model = new News();
     $this->info = $this->model->makeInfo($this->module);
     $this->access = $this->model->validAccess($this->info['id']);
     $this->lang = \Lang::getLocale() == '' ? CNF_LANG : \Lang::getLocale();
     $this->data = array('pageTitle' => $this->info['title'], 'pageNote' => $this->info['note'], 'pageModule' => 'news', 'return' => self::returnUrl());
 }
All Usage Examples Of Lang::getLocale