Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

anas_74's avatar

how to handle part of blade template view with inertia.js

hey everyone I hope y'all doing well I'm facing a problem while creating my social web application using laravel and inerti.js my problem is while I'm using inertia.js for handling my components I reach out to the point that it's very difficult to handle with inertia.js because I can't leverage the power of eloquent ORM and Carbon functionality so I decided to handle it using blade template instead but I want to include in the blade template page the inertia.js layout component and I don't know how to do this while using just Vue.js I can do this via creating the Vue app in app.js and assign the Vue app to any HTML element but while using inertia I can't render a blade template view and also handle a part of the page via inertia component and while trying to do this I got error said Undefined variable by the way I use laravel 9

0 likes
1 reply
Sinnbeck's avatar

Show the code you have moved to blade. Short answer is to move it back to vue or stop using inertia and pick something like livewire (or just plain blade) instead. You can render raw html in vue, but it kinda defeats the purpose of vue as the content is completely static

1 like

Please or to participate in this conversation.