Have you tried clearing route cache.
Also check network tab.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Here's a snippet from my routes file:
Route::domain('{domain}.xyz.test')->group(function() {
dd(url()->current());
Route::get('/apple-orange', function() {
return "Apple and Orange";
});
});
Browser URL: https://abc.xyz.test/apple-orange
On my local valet installation, the output is https://abc.xyz.test/apple-orange, and commenting out the dd part gives me "Apple and Orange" as expected.
I modify the code as follows for my live-server:
Route::domain('{domain}.customer.app')->group(function() {
dd(url()->current());
Route::get('/apple-orange', function() {
return "Apple and Orange";
});
});
URL: https://support.customer.app/apple-orange
There are two scenarios:
https://support.customer.app/apple-orange; which means the route is properly recognized by Laravel.dd part, the route /apple-orange is never called; and laravel throws 404 error.This is very strange and I am unable to figure out what's going on.
Looking for answers from a human. This LarryAI bot is utterly useless. :-(
Please or to participate in this conversation.