added uri class. refactored.

This commit is contained in:
Taylor Otwell
2011-11-14 21:18:18 -06:00
parent 2758b4c16d
commit d1a969bd29
12 changed files with 142 additions and 94 deletions

View File

@@ -23,9 +23,7 @@ class Redirect extends Response {
*/
public static function to($url, $status = 302, $https = false)
{
$response = new static('', $status);
return $response->header('Location', URL::to($url, $https));
return static::make('', $status)->header('Location', URL::to($url, $https));
}
/**