Can you share the Vue script code that includes the post/put/patch request used to update the Tasks.
Mar 24, 2024
6
Level 1
Using laravel routing to update 1 VUE prop only and leave the rest unchanegd
Hello, so right now I have a vue page that accepts these props:
defineProps({
Projects: ref(Array),
CurruntProject:ref(Object),
Tasks: ref(Array),
DoneTasks: ref(Array),
AddTask: ref(false),
})
I have a controller method in laravel that updates values in Tasks but it wont display the updated values in the page unless I refresh it , so what I want to do is to redirect to the previous route with all other props having their old values except for Tasks and have the updated values show in the front-end without refreshing.
this code describes what I ballistically want to do (and I know it is wrong I just want the right equivalent of that , sorry for horrible code )
return redirect()->route(('project.show',$project),[
'Tasks'=> $Tasks,
]);
Thank you!
Please or to participate in this conversation.