I want to generate url with parameters in Laravel like this:
http://example.com/validate_email?user_id=31&confirmation_code=ihlasfsafe
I tried
URL::to('validate_email', array('user_id' => $user_id, 'confirmation_code' => $confirmation_code));
But it gives me:
http://example.com/validate_email/31/ihlasfsafe
So how can I do it correctly?