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
So, yes, you're getting the event ID here:
var event_id = $('#event_id').val();
But you're not doing anything with that variable. If you never use a variable you've assigned, that's a major indication that you have a problem in your code. Some programming languages will even refuse to compile because of it.
Pass the event ID in the query string of your GET request, just like you're doing with day ID:
$.get('/hour?day_id=' + day_id + '&event_id=' + event_id, function(data){
Then retrieve it the same way from the Input facade:
$event_id = Input::get('event_id');