Did you find the solution? I have the exact same problem.
Laravel route multi subdomain on Shared Hosting
Hello, i have one larval project. I have configured multi subdomain route on web.php :
\App\Http\Controllers\FrontEnd\FrontEndController::routes();
[...]
Route::group(
[
'domain' => '{subdomain}.' . config('app.domain')
],
function () {
[...] // other Controller routes
If I go to links: mysite.com or subdomain.mysite.com all right. (FrontEndController) but, if I try go to this links: mysite.com/login or subdomain.mysite.com/login have 404 page error.
Why?
In shared hosting i have put laravel public directory into public_html and in subdomain.mysite.com ( I have create a subdomain in cpanel) directory and the project in directory laravel_project into root directory
public_html and subdomain.mysite.com directory link to lavarel_project directory (I have edited index.php into public directory)
In local it's work.
Please or to participate in this conversation.