I decided to start learning Vue with a new Laravel project I'm working on.
I added the example component that comes with Laravel in my home.blade view.
The problem is PhpStorm is telling me:
Unknown html tag example-component
I have the Vue.js plugin enabled in PhpStorm and the component itself renders fine when I visit the home page.
How do I get PhpStorm to recognize my Laravel Vue components?
Related
working with Laravel and Vue JS. I have installed Vuex with the project. but now My all User Interface not view as before. route is working as well. not any error message also. how could I fix this problem?
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 am confused about something:
Does this themes really use Vue JS ? https://material-dashboard-laravel.creative-tim.com/docs/getting-started/file-structure.html
I don't see any .vue file in the structure of the file tree.
On the top of this the Vue Devtools of Chrome doesn't see those page as Vue page.
How come ?
I have setup the laravel vue material dashboard on my localhost following this process: https://material-dashboard-laravel.creative-tim.com/docs/getting-started/laravel-setup.html but still the VueDevtools doesn't detect Vue and I find the loading of the page quite slow...
Your opinion ?
i'm having active project and inside all the vuejs components are working fine , but when installed Argon Dashboard for laravel to my laravel project . My VueJs Components are not showing , i have added js/app.js to my layout/app.blade.php but still its not generating component view inside blade view please help
ok i figured out it was missing id as App inside layout/app.blade.php
I have created a project in Vue.js and now i just want to integrate that vuejs project with laravel 5 plus. Should it be done by the build or by the components of vue.? Thank You.
The easy way for build Vue in Laravel
after you download your Laravel project, you open your terminal and type
npm install
Vue auto installed in your Laravel project
app/resources/assets/js/app.js
You need to change your Laravel route in web.php
Route::any('{all}', function(){
return view('app');
})->where('all', '.*');
After you change your Laravel router, you can use Vue router for instead Laravel router.
Everything work for me.