Skip to content

Commit 2a0615c

Browse files
authored
Update redirects.md (laravel#6634)
1 parent 8ef3898 commit 2a0615c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redirects.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ If your controller route requires parameters, you may pass them as the second ar
7676

7777
Redirecting to a new URL and [flashing data to the session](/docs/{{version}}/session#flash-data) are usually done at the same time. Typically, this is done after successfully performing an action when you flash a success message to the session. For convenience, you may create a `RedirectResponse` instance and flash data to the session in a single, fluent method chain:
7878

79-
Route::post('user/profile', function () {
79+
Route::post('/user/profile', function () {
8080
// Update the user's profile...
8181

8282
return redirect('/dashboard')->with('status', 'Profile updated!');

0 commit comments

Comments
 (0)