ArthurUf
10 months ago
96
13
Vue

Use Laravel lang and choice on Vue component

Posted 10 months ago by ArthurUf

I'm a starter on Vue and I'm transfoming some blade pages of my project to Vue components, in the first case, i have sended the values of the Laravel Langs by parameters from the blade page to the Vue component, when I call the component in my blade page. But now I'm calling one more component inside my component and I need others Laravel Langs there.

How I send the langs now: https://jsfiddle.net/k17ysa5o/

My question is: What is the best way to use the Laravel Langs on Vue components? I need to send by parameters in all my project?

Please sign in or create an account to participate in this conversation.