コード例 #1
0
ファイル: BaseRepository.php プロジェクト: duyluonglc/rakko
 public function getLocales()
 {
     $locales = Locale::all();
     //dd($locales);
     if (empty($locales)) {
         throw new LocalesNotDefinedException('Please make sure you have run "php artisan config:publish dimsav/laravel-translatable" ' . ' and that the locales configuration is defined.');
     }
     return $locales;
 }
コード例 #2
0
 public function compose($view)
 {
     $view->locales = Locale::all();
 }
コード例 #3
0
ファイル: LocaleService.php プロジェクト: vipervoid/Pitimi
 public static function getLocales()
 {
     Log::info('Get all locales.');
     return Locale::all();
 }