Calling route() from subdomain return wrong url address? #43788
Unanswered
whousehomestay
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello... I have a problem when calling route() function from sub domain on blade.
My web.php:
Route::domain('creator.'.config('domain.domain'))->name('creator.')->group(function () {
Route::get('/', 'Creator\DashboardController@index')->name('dashboard');
});
Route::get('/', 'Front\FrontController@index')->name('app.homepage');
when I am currently on url: creator.domain and call {{route('app.homepage')}} on blade, it returns creator.domain.com instead of domain.com. Do I need to create a group routing that has 'www' as sub domain? or maybe I miss something there? Thank You...
Beta Was this translation helpful? Give feedback.
All reactions