Commit 97ac2c8d authored by Taylor Otwell's avatar Taylor Otwell

added languages method to the request class.

parent f97f73a8
......@@ -125,6 +125,16 @@ class Request {
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.
*
......
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