added simpler and easier environment handling.

This commit is contained in:
Taylor Otwell
2012-04-12 23:35:41 -05:00
parent 34cb9a00f4
commit ab6e364546
4 changed files with 123 additions and 61 deletions

View File

@@ -24,4 +24,14 @@ class LaravelRequest extends Request {
return $request;
}
/**
* Get the root URL of the application.
*
* @return string
*/
public function getRootUrl()
{
return $this->getScheme().'://'.$this->getHttpHost().$this->getBasePath();
}
}