How to send a variable from JS to my Laravel Controller
问题 I'm sorry. I have researched for several hours, several and I still do not reach success with this. Let me explain: I'm on the route /events/1 , so I'm already inside the details of the event. When I select a date (that is why it is the variable "day_id") it makes a query. But each event has different days, that is why I need to pass the event ID also to make the query. $event_id = "Dynamic Value"; $data = Hour::where('selected_date', $day_id)->where('event_id', $event_id)->get(); I don't