added languages method to the request class.
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user