I am pretty new to Laravel and the whole Ecosystem.
I'm trying to Create a little Voting app, where you got Users who can create VoteItems which can be Voted on. So in theory every user should have One Vote for every VoteItem but i can't seem to grasp how i would go about doing that, i got my foreign Keys for user_id and voteItem_id in my migration, but how do i pass those over?
In my Store function i call $request->user()->votes()->create($validated); where the user() part would handle the user_id if i am correct, but how do i get the voteItem_id ?