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
Related
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.
I'm currently working on application's translation with Laravel Localization (laravel 5.6).
I succeed my text translation on blade templates but I have some view using vuejs.
Into them I can't use directly laravel localization.
I understand that I have to send my translations files (which are in PHP) into the vue in JS.
I found some packages like :
https://github.com/rmariuzzo/Laravel-JS-Localization ; but it doesn't support laravel 5.6 (damned)...
https://github.com/martinlindhe/laravel-vue-i18n-generator ; Laravel 5 package is no longer maintain...
This application use Laravel 5.6 and vue 2.
I can't completely reorganize or upgrade Laravel or vue version.
After many research I'm still not able to do it...
Do you know how can I made translation into my vue component?
Thanks a a lot!
I have a few questions regarding building an e-commerce website. I want to program a small e-commerce website using Laravel and Vue. I know the basics of Laravel and Vue, but I'm struggling when it comes to selecting the best plan to program the website. So I have a few questions regarding that.
Should an e-commerce website be dynamic or SPA?
Should I use a Vue router or built-in Laravel router?
Is it good practice to mix Vue components and Blade Template or should I separate Vue and Laravel when it comes to the frontend?
Suggest you use nuxt universal, cuz need seo, spa didnt index well in search engine
For client side use Vue router, for rest api use laravel router
If you use vue + nuxt dont need blade
I'm currently using Laravel 5.6. I have integrated bootstrap and would like to use the package React Bootstrap. For my component building.
Currently the components do not render properly. I believe it's because it's conflicting with the Laravel bootstrap/
In app.js I've disabled:
// require('./bootstrap');
The component still does not appear correctly.
I also import this in my component:
import 'bootstrap/dist/css/bootstrap.min.css';
This causes my layout to change drastically.
Is there any specific way I can up my laravel project and be able to take advantage of the React Bootstrap components?
you should run npm install && npm run dev commands and then it will work properly
this is the link from documentation https://laravel.com/docs/7.x/frontend
you can try adding bootstrap cdn on your blade file
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?