From 45d3a259719f3961078acadea59b3b5f68a46d87 Mon Sep 17 00:00:00 2001 From: mychidarko Date: Tue, 26 Nov 2024 07:56:31 +0000 Subject: [PATCH] feat: deprecate app->push --- src/Router.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Router.php b/src/Router.php index d2dcc1b..b485740 100644 --- a/src/Router.php +++ b/src/Router.php @@ -390,6 +390,8 @@ public static function apiResource(string $pattern, string $controller) * * @param string|array $route The route to redirect to * @param array|null $data Data to pass to the next route + * + * @deprecated Use `Leaf\Http\Response::redirect` instead */ public static function push($route, ?array $data = null) {