I have 1 subdomain in my app: admin.test.com
and then the root is test.com
. While in admin.test.com
I want to send an email to a user to log in to test.com/login/aseqgaasd
but right now it is sending the link to admin.test.com/login/aseqgaasd
.
How can I use the {{ URL::to('login', array($code)) }}
method to route to the main domain and not the sub domain?
I do not want to use .htaccess