Skip to content

Commit afe9c30

Browse files
authored
Deprecate Redirect::home() (#42600)
Deprecate Redirect::home() in response to Taylor's note that it's not even a documented feature. #42560 (comment)
1 parent 6fb604f commit afe9c30

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Illuminate/Routing/Redirector.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ public function __construct(UrlGenerator $generator)
4040
*
4141
* @param int $status
4242
* @return \Illuminate\Http\RedirectResponse
43+
*
44+
* @deprecated Will be removed in a future Laravel version.
4345
*/
4446
public function home($status = 302)
4547
{

0 commit comments

Comments
 (0)