add load strings for i18n from database

This commit is contained in:
Milos Holba
2021-03-16 19:26:42 +01:00
parent 353180491b
commit 617f715774
9 changed files with 154 additions and 26 deletions

View File

@@ -28,6 +28,14 @@ class LanguageController extends Controller
return Language::all();
}
public function get_language_strings_i18n($language)
{
$lang = Language::whereLocale($language);
return $lang->with('languageStrings')->first();
}
/**
* Get all language strings
*