Is there a way to set a route to a dynamic subdomain in CI4
For exmaple:
PHP Code:
$routes->get('profile/(:segment), 'UsersController::profile/$1'');
The segment in te abouve code will be the username with we hope to set as a subdomain.
username.example.com
So we can fetch details base on the username.