Using Inertia.js in external Vue component library - laravel

I'm creating a Vue component library for integration with my Laravel project that uses Inertia.js. How can I use the inertia methods and components inside my library?
I have installed #inertiajs/vue3 on both laravel and the vue component library, but it doesn't work. I import the components and methods in the vue component library but when I go back to laravel, they don't seem to be working.

Related

Cannot use import statement outside a module laravel vue inertia ssr

I'm implementing inertia ssr to existing inertia website
I got this error from vue agile
Cannot use import statement outside a module
I looked up in vue agile docs the says that I have to do this to work with ssr
ssr support
How can I implement this in laravel mix
I used client only package to continue on
duannx/vue-client-only

Laravel API and Vue SPA or inline Vue?

When working with Laravel, it seems I can use Vue inside the Laravel Blade but I can also use Laravel project only as an API while using another project (Vue in this case) as a front-end connecting to the API?
Which approach is better and has its advantages/disadvantages?

How to manage Vue components inside the module folder?

I am using Caffeinated package for modules.
Hi, I'm trying to use Vue JS components that are stored directly in a module Resources folder (/js/components).
I would rather not write for each Vue component its path in the main Laravel app.js file, so i'm thinking about editing the app.js files to scan Modules components folder and require each component automatically, but I'm not so good with the Vue JS enviroment.
Is there a simpler way to use Vue components inside modules folders?

Include Vue in a Codeigniter project

I have a very broad project, developed in codeigniter, I want to integrate Vue and I do not know how to do it.
Is it better to create a new project based on Vue and try to migrate things?
Modify my JS of my current project and replace it with Vue?
What do you recommend?
i have sucessfully use vue to replace codeigniter view layer, i use laravel mixin to compile vue SFC then include built file to the codeigniter view template
FrontEnd frameworks has nothing to do backend frameworks. They communicate via http-request responses.
You may use backend of your choice and render the content on the page.
However, if you want to integrate vue with existing project (which is already working), I recommend new project based on Vue and migrate back end code on need basis

How can i build project with vue js & laravel in shared hosting?

I have integrated real chat system develop from VUE JS in my project developed in Laravel framework.
All Vue components need to be compiled down to JavaScript locally. Laravel does that automatically out of the box and you end up with a single static asset app.js. You need to use npm -command to do that see Laravel documentation for details. Then you just deploy single static app.js with you code.

Resources