Skip to content

Commit 45d3a25

Browse files
committed
feat: deprecate app->push
1 parent 87fcb7b commit 45d3a25

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Router.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,8 @@ public static function apiResource(string $pattern, string $controller)
390390
*
391391
* @param string|array $route The route to redirect to
392392
* @param array|null $data Data to pass to the next route
393+
*
394+
* @deprecated Use `Leaf\Http\Response::redirect` instead
393395
*/
394396
public static function push($route, ?array $data = null)
395397
{

0 commit comments

Comments
 (0)