added languages method to the request class.

This commit is contained in:
Taylor Otwell
2012-04-01 15:17:41 -05:00
parent f97f73a835
commit 97ac2c8dbf

View File

@@ -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.
*