overall code refactoring, comment improvement.
This commit is contained in:
@@ -38,6 +38,19 @@ class Redirect {
|
||||
: new static(Response::make('', $status)->header('Location', $url));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a redirect response to a HTTPS URL.
|
||||
*
|
||||
* @param string $url
|
||||
* @param string $method
|
||||
* @param int $status
|
||||
* @return Response
|
||||
*/
|
||||
public static function to_secure($url, $method = 'location', $status = 302)
|
||||
{
|
||||
return static::to($url, $method, $status, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add an item to the session flash data.
|
||||
*
|
||||
@@ -59,19 +72,6 @@ class Redirect {
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a redirect response to a HTTPS URL.
|
||||
*
|
||||
* @param string $url
|
||||
* @param string $method
|
||||
* @param int $status
|
||||
* @return Response
|
||||
*/
|
||||
public static function to_secure($url, $method = 'location', $status = 302)
|
||||
{
|
||||
return static::to($url, $method, $status, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Magic Method to handle redirecting to routes.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user