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(); }
public static function getLocales() { Log::info('Get all locales.'); return Locale::all(); }