0👍
You could create a javascript variable in the blade:
<script>
window.Paths = {
img: "{{ config('base_path_images') }}"
};
</script>
And then create a computed property in the component
export default {
computed: {
basepathimg () {
return window.Paths.img;
}
}
}
- [Vuejs]-Laravel Cors Access-Control-Allow-Origin
- [Vuejs]-How to hide all buttons except clicked one if they are listed in v-for?
Source:stackexchange.com