Commit 97ac2c8d by Taylor Otwell

added languages method to the request class.

parent f97f73a8
...@@ -126,6 +126,16 @@ class Request { ...@@ -126,6 +126,16 @@ class Request {
} }
/** /**
* 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. * Determine if the current request is using HTTPS.
* *
* @return bool * @return bool
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment