예제 #1
0
 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;
 }
 public function compose($view)
 {
     $view->locales = Locale::all();
 }
예제 #3
0
 public static function getLocales()
 {
     Log::info('Get all locales.');
     return Locale::all();
 }