From 354edf45ae4723b0152fed8a93aaf360ee47dcd6 Mon Sep 17 00:00:00 2001 From: AmirHossein Fallah Date: Mon, 8 Dec 2025 14:30:35 +0330 Subject: [PATCH] docs: clarify now() helper usage in signed URL example Added inline comment to explain that now() is a Laravel helper function to help new developers understand they don't need to explicitly import Carbon. This improves documentation clarity for beginners. --- urls.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/urls.md b/urls.md index 7164f436cf..239cbce039 100644 --- a/urls.md +++ b/urls.md @@ -186,9 +186,12 @@ If you would like to generate a temporary signed route URL that expires after a ```php use Illuminate\Support\Facades\URL; +use Illuminate\Support\Carbon; return URL::temporarySignedRoute( - 'unsubscribe', now()->addMinutes(30), ['user' => 1] + 'unsubscribe', + now()->addMinutes(30), + ['user' => 1] ); ```