please how can i use object returned from laravel controller in vue component like we use in blade
for example i have 2 table user and role user has one role
users
id - integer
name - string
roles
id - integer
name - string
in controller i return an object of type user and i use it like this in blade
{{$user->role['name']}}
like this i can get the name of role
how can i get the role name of the returns user in Vue template