Languages:

Languages is a collection class that inherits from Laravel's Illuminate\Support\Collection. Therefore, it has all the same methods as the Laravel Collection, plus some additional methods. Those methods are as follows.

supports(string $lang, $strict = false)

This method takes a i18n language code string (i.e. 'en', 'fr-FR', 'es-ES') as parameter to determine if the browser supports that language. By default, this method returns true when the browser supports the given language regardless of the country and/or variant segment of the language code. For example, accept-language: "en-US,en;q=0.9,fr;q=0.8"