diff --git a/laravel/request.php b/laravel/request.php index 6ed7fe13..07b9bb72 100644 --- a/laravel/request.php +++ b/laravel/request.php @@ -125,6 +125,16 @@ public static function accepts($type) return in_array($type, static::accept()); } + /** + * Get the languages accepted by the client's browser. + * + * @return array + */ + public static function languages() + { + return static::foundation()->getLanguages(); + } + /** * Determine if the current request is using HTTPS. *