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) {