izniburak / php-router

PHP Router, which also has rich features like Middlewares and Controllers is simple, useful and flexible router class for PHP.
https://github.com/izniburak/php-router/wiki
MIT License
238 stars 45 forks source link

Subdomain Control Issue #75

Open Sanan-84 opened 8 months ago

Sanan-84 commented 8 months ago

I am experiencing an issue with adding subdomain control to a route class. When adding subdomain control, I noticed that the expected behavior is not occurring.

subdomain control as follows:

Route::subdomain('subdomain')->group(function () {
    // Subdomain-specific code will be added here
});

I visited the page by setting the subdomain to subdomain

Instead of the expected behavior, I did not receive any error or result explaining the issue.

Expected Behavior: When visiting the subdomain subdomain.example.com, the code in the relevant route class is expected to run, and the correct results are expected.