From ee98b218fcb6883500c81ff35b96c5f3839df572 Mon Sep 17 00:00:00 2001 From: mychidarko Date: Wed, 4 Dec 2024 16:32:38 +0000 Subject: [PATCH] fix: update getRoute to route --- .vitepress/config/navbar.ts | 2 +- src/docs/routing/index.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.vitepress/config/navbar.ts b/.vitepress/config/navbar.ts index 1f608ce..b9c9543 100644 --- a/.vitepress/config/navbar.ts +++ b/.vitepress/config/navbar.ts @@ -49,7 +49,7 @@ const nav: DefaultTheme.NavItem[] = [ items: [ { text: 'Hana JS', - link: 'https://hanajs.dev', + link: 'https://hana.leafphp.dev', }, { text: 'Naytive', diff --git a/src/docs/routing/index.md b/src/docs/routing/index.md index 3d624f0..80bda0a 100644 --- a/src/docs/routing/index.md +++ b/src/docs/routing/index.md @@ -116,7 +116,7 @@ You can then redirect to this route using the route name by passing an array wit response()->redirect(['home']); ``` -If you want to get details about a route, you can use the `getRoute()` method. +If you want to get details about a route using its name, you can use the `route()` method. ```php:no-line-numbers $route = app()->route($routeName);