added redirect::back method.
This commit is contained in:
@@ -14,6 +14,17 @@ class Redirect extends Response {
|
||||
return static::to(URL::home($https), $status);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a redirect response to the HTTP referrer.
|
||||
*
|
||||
* @param int $status
|
||||
* @return Redirect
|
||||
*/
|
||||
public static function back($status = 302)
|
||||
{
|
||||
return static::to(Request::referrer(), $status);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a redirect response.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user