Middleware

Code that runs before or after every request in a group, such as checking the domain, language or login.

PHP

Example

ResolveMarket on alp-see.com reads the hostname, picks the market (com, ch, at, biz.id) and sets the language before any page renders.

Related

← Eloquent Updated 2026-11-26 Migration →