skip to Main Content

Laravel Wildcard Subdomain routing – Apache

I have some problems with wildcard subdomain routing with Laravel. I want to create subdomain for every user. So I'm doing like this: My API.js in Laravel routes: Route::domain('{user}.mydomain.com')->group(function () { Route::get('user', [UserController::class, 'getUserDetails'])->name('user'); }); And this is my vhosts…

VIEW QUESTION
Back To Top
Search