Inertia just uses laravel routes, so write them in web.php
Vue router to inertia js
Hello everyone Can anyone here help to convert vue router template to laravel inertia vite ?
@Sinnbeck sir I have vue router template want to change to inertia vue
Inertia just uses laravel routes, so write them in web.php
So it does not go in vue. Only the calling of the routes..
And is there a question here? Any part you need help with?
@Sinnbeck I want to convert vue router to inertia js
@karwan Thats a statement, not a question. good luck :)
@Sinnbeck cant you tell me how to migrate files
@karwan You havent shown anything? But look at the route structure. Write the same in php.. Repeat
An example of a question would be
I have this route written with vue router
{ path: '/about', component: About },
How could I convert this to inertia
@Sinnbeck no I have template created with vue I want to migrate all files to vue inertia
@karwan ok cool :)
@Sinnbeck so what I have to do
@karwan hard to say when you have posted 0 lines of code.
@Sinnbeck I want to convert entire template
Hi @karwan , any luck on this. I am in the same situation. Can you please help me?
@PushkarRana This has been answered already. @sinnbeck explained how routing works in Inertia, and @imwaller posted an example.
For more information, see https://inertiajs.com/pages and https://inertiajs.com/routing
{ path: '/about', component: About },
convert to
Route::get('about', fn() => Inertia::render('About'))->name('about');
Please or to participate in this conversation.