Skip to content

Commit

Permalink
feat: deprecate app->push
Browse files Browse the repository at this point in the history
  • Loading branch information
mychidarko committed Nov 26, 2024
1 parent 87fcb7b commit 45d3a25
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 45d3a25

Please sign in to comment.