Skip to content

Commit

Permalink
Add previous method to UrlGenerator interface (#25616)
Browse files Browse the repository at this point in the history
  • Loading branch information
thijsvdanker authored and taylorotwell committed Sep 14, 2018
1 parent e4bd21f commit 1bcb7b5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Illuminate/Contracts/Routing/UrlGenerator.php
Expand Up @@ -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.
*
Expand Down

0 comments on commit 1bcb7b5

Please sign in to comment.