Access Vue Properties And Pass Them To Splade Form #594
Unanswered
MotionPhix
asked this question in
Q&A
Replies: 2 comments
-
You may want to try something like #463. You'll need to pass the form as a prop into your custom component and add |
Beta Was this translation helpful? Give feedback.
0 replies
-
resources/js/components/select-member.vue
resources/views/tasks/create.blade.php
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description:
I have created a custom renderless Vue Select component which I want to use to get a selected value into the splade form. I have a task assignment form which basically adds new tasks to a project and I want to assign someone to the task on creation. The code seems to work but I can't find the attribute being added to laravel backend upon form submission. Let me provide my components.
Steps To Reproduce Issue:
// Firstly, the
SelectMember
renderless Vue component inresources/js/components/select-member.vue
Then my
create.blade.php
Task creation form inresources/views/tasks/create.blade.php
Now my Task controller
When I submit the form, I dont' get the
assigned_to
atribute, I just getname
anddescription
. What am I missing?Beta Was this translation helpful? Give feedback.
All reactions