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
1 changed files with 10 additions and 0 deletions

View File

@ -125,6 +125,16 @@ public static function accepts($type)
return in_array($type, static::accept()); 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. * Determine if the current request is using HTTPS.
* *