In the Vue Inspector I actually get the message, but I'm not sure how to use it on the Vue component.
Please view the picture link
https://ibb.co/2KTmstS
I'm using Inertia helper methods and sending messages to Vue components but nothing works.
public function contact_to_project(){
$message = "My message!";
return Inertia('Contact_to_project', [
'message' => $message
]);
}
My Vue component
<template> {{message}}</template>
<script>
export default {
props: {
message: String,
},
}
</script>
Based on your question in
vue component, you can define the data aspropsand then you can display it intemplateas shown below Example below:sssccc{{props?.message}}