Skip to content

Commit 660476c

Browse files
authored
Add previousPath usage (#10139)
1 parent a61f12b commit 660476c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

urls.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ If no path is provided to the `url` helper, an `Illuminate\Routing\UrlGenerator`
6868
// Get the full URL for the previous request...
6969
echo url()->previous();
7070

71+
// Get the path for the previous request...
72+
echo url()->previousPath();
73+
7174
Each of these methods may also be accessed via the `URL` [facade](/docs/{{version}}/facades):
7275

7376
use Illuminate\Support\Facades\URL;

0 commit comments

Comments
 (0)