Merge pull request #933 from franzliedke/patch-22

Request::time()
This commit is contained in:
Dayle Rees 2012-07-31 08:46:43 -07:00
commit dab2c79298
1 changed files with 10 additions and 0 deletions

View File

@ -177,6 +177,16 @@ public static function referrer()
{
return static::foundation()->headers->get('referer');
}
/**
* Get the timestamp of the time when the request was started.
*
* @return int
*/
public static function time()
{
return (int) LARAVEL_START;
}
/**
* Determine if the current request is via the command line.