probably because vue.js applies all its' magic on runtime and PHP doesn't.
Yep. That's right. So you must make Vue component for this blade and call it. For example usertag component (/component/UserTag.vue):
<template>
@usertag blade html code
</template>
<script>
export default {
name: 'UserTag',
props: ['input-id'],//for use user.id
data() {
return {
}
},
}
</script>
And then you need call this component like this:
<apicontainer>
<template slot-scope="data">
<user-tag :input-id="data.user.id"></user-tag>
</template>
</apicontainer>
<script>
import UserTag from '../component/UserTag.vue'
export default {
components: {
.......
'user-tag': UserTag
.......
}
</script>
Some thing like this. I think.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community