File tree Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -79,24 +79,13 @@ export default function () {
79
79
< A href = "https://laravel.com/docs/starter-kits" > starter kits</ A > , Ziggy is already configured for you.
80
80
</ P >
81
81
< P >
82
- If you're using Ziggy with Vue, it's helpful to make this function available as a custom < Code > $ route</ Code > { ' ' }
83
- property so you can use it directly in your templates.
82
+ If you're using the Vue plugin included with Ziggy, you may use the < Code > route() </ Code > { ' ' }
83
+ function directly in your templates.
84
84
</ P >
85
- < TabbedCode
86
- examples = { [
87
- {
88
- name : 'Vue' ,
89
- language : 'js' ,
90
- code : dedent `
91
- app.config.globalProperties.$route = route
92
- ` ,
93
- } ,
94
- ] }
95
- />
96
85
< CodeBlock
97
86
language = "html"
98
87
children = { dedent `
99
- <Link :href="$ route('users.create')">Create User</Link>
88
+ <Link :href="route('users.create')">Create User</Link>
100
89
` }
101
90
/>
102
91
</ >
You can’t perform that action at this time.
0 commit comments