Chats.php
<ChatsComponent :user="{{ Auth::user()}}" />
in ChatsComponent.php
<template>
<div class="container font-sans antialiased h-screen flex">
<span class="font-bold">{{user.name}}</span>
</div>
</template>
<script>
export default {
props:['user'],
}
</script
I dont know why i get this error iam using laravel8.x with innertia + vue
:user="{{Auth::user()}}"? This is prop syntax and div is not a component. If you accept "user" as props, why do you use Laravel syntax in Javascript, BTW, it's not possible as far as I know. So your problem is there but the code doesn't make your intention clear.