We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0dcb57d commit 3f13de8Copy full SHA for 3f13de8
README.md
@@ -57,6 +57,20 @@ $navigation->get()->name;
57
$navigation->get('name', 'My menu title');
58
```
59
60
+### Acorn Usage
61
+
62
+If you are using Navi alongside [Acorn](https://roots.io/acorn/) (e.g. Sage), you may generate a usable view component using Acorn's CLI:
63
64
+```sh
65
+$ acorn make:navi
66
+```
67
68
+Once generated, you may use the [view component](https://laravel.com/docs/11.x/blade#components) in an existing view like so:
69
70
+```php
71
+<x-navigation />
72
73
74
### Accessing Page Objects
75
76
If your menu item is linked to a page object (e.g. not a custom link) – you can retrieve the ID of the page using the `objectId` attribute.
0 commit comments