Repository navigation
Language
Viames Marino edited this page Oct 19, 2026
·
2 revisions
Pair\Models\Language stores language settings and country association.
getDefaultCountry(): ?Country
Lifecycle/config:
-
_init()defines fields and validations
use Pair\Models\Language;
$lang = Language::firstWhere('code', 'en');
$defaultCountry = $lang?->getDefaultCountry();- Supports locale-aware defaults for formatting and content routing.
See also: Country, Locale, Translator.
Home · Setup · Configuration
Build with Pair 4
- Generator
- Controllers and responses
- Read models
- ActiveRecord and queries
- Forms and validation
- PairUI.js and HTML fragments
APIs and authentication
- API guide and CRUD
- Middleware and rate limits
- Users, sessions, and ACL
- Passkeys and social login
- Native mobile setup
Integrate and operate
- Integrations
- Runtime extensions and adapter keys
- Cache and cache stores
- Logs and observability
- PWA and push
- Packages and distribution
- Upgrade to v4