php - Link From Subdomain to Root Domain Laravel 4.2 -
i have 1 subdomain in app: admin.test.com , root test.com. while in admin.test.com want send email user log in test.com/login/aseqgaasd right sending link admin.test.com/login/aseqgaasd.
how can use {{ url::to('login', array($code)) }} method route main domain , not sub domain?
i not want use .htaccess
you use named routes. example, in routes.php:
route::get('login/{param}', array('as' => 'testlogin', 'uses' => 'homecontroller@login')); then, in blade template:
{{ url::route('testlogin', array('param' => $code)) }} i don't know routes file looks like, need adjust fit needs. important piece 'as' => 'testlogin' since that's names route , allows referred such throughout application.