Skip to content

Language

Viames Marino edited this page Feb 23, 2026 · 1 revision

Pair framework: Language

Pair\Models\Language stores language settings and country association.

Main methods

  • getDefaultCountry(): ?Country

Lifecycle/config:

  • _init() defines fields and validations

Implementation example

$lang = \Pair\Models\Language::findByCode('en');
$defaultCountry = $lang?->getDefaultCountry();

Notes

  • Supports locale-aware defaults for formatting and content routing.

See also: Country, Locale, Translator.

Clone this wiki locally