Generated URLs default to use the current protocol (http or https)
Signed-off-by: Phill Sparks <phill@bulbstudios.com>
This commit is contained in:
@@ -9,7 +9,7 @@ class Redirect extends Response {
|
||||
* @param bool $secure
|
||||
* @return Redirect
|
||||
*/
|
||||
public static function home($status = 302, $https = false)
|
||||
public static function home($status = 302, $https = null)
|
||||
{
|
||||
return static::to(URL::home($https), $status);
|
||||
}
|
||||
@@ -41,7 +41,7 @@ class Redirect extends Response {
|
||||
* @param bool $https
|
||||
* @return Redirect
|
||||
*/
|
||||
public static function to($url, $status = 302, $https = false)
|
||||
public static function to($url, $status = 302, $https = null)
|
||||
{
|
||||
return static::make('', $status)->header('Location', URL::to($url, $https));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user