added languages method to the request class.
This commit is contained in:
parent
f97f73a835
commit
97ac2c8dbf
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue