laravel redirect based on requesting domain code example
Example: laravel route
# Using Request
Route::get('user/{name}', function (Request $request) {
return $request->route('name');
});
# Using Request
Route::get('user/{name}', function (Request $request) {
return $request->route('name');
});