Capture domain in Laravel routes file as url variable
I have a problem capturing the domain in the routes file. When a route is written like this: Route::domain(‘mydomain.com’) ->get(‘/’, function () { return "It works"; }); And I access mydomain.com, I correctly get status 200 and a string It works. But when the routes are changed to this: Route::domain(‘{domain}’) ->get(‘/’, function () { return… Read More Capture domain in Laravel routes file as url variable