From 1bcb7b503452211b4b3c2a56cc834778b28b9a89 Mon Sep 17 00:00:00 2001 From: Thijs van den Anker Date: Fri, 14 Sep 2018 15:22:46 +0200 Subject: [PATCH] Add previous method to UrlGenerator interface (#25616) --- src/Illuminate/Contracts/Routing/UrlGenerator.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Illuminate/Contracts/Routing/UrlGenerator.php b/src/Illuminate/Contracts/Routing/UrlGenerator.php index 53044ccc6be9..c453b6bb1e47 100644 --- a/src/Illuminate/Contracts/Routing/UrlGenerator.php +++ b/src/Illuminate/Contracts/Routing/UrlGenerator.php @@ -11,6 +11,14 @@ interface UrlGenerator */ public function current(); + /** + * Get the URL for the previous request. + * + * @param mixed $fallback + * @return string + */ + public function previous($fallback = false); + /** * Generate an absolute URL to the given path. *