Replies: 4 comments 4 replies
-
Unfortunately, we don't have plans to add more features to the Routing component in Hypervel. The routing component in Hypervel is not ported from Laravel. It's built on FastRoute, which is the foundation used by Hyperf's routing component, and it's also the same one used by Lumen. Some routing features from Laravel are difficult or complicated to implement on the current foundation. Therefore, we intend to keep the routing functions aligned with Lumen for the time being. But of course, any PRs are welcome. |
Beta Was this translation helpful? Give feedback.
-
Might spend some time looking into it But just off the top of the mind - does there seem to be any obvious limitations that would make it difficult or impossible to implement a Hypervel routing feature based on domain/subdomain? Or does it seem theoretically very much doable with some work? |
Beta Was this translation helpful? Give feedback.
-
Feel free to work on it 👍 |
Beta Was this translation helpful? Give feedback.
-
@albertcht What do you think about handeling the domain functionality with a middleware: the Route::domain() method could implement the middleware behind the scenes like in this discussion Essentially doing the same as: $router->group(
[
'middleware' => ['domain:' .$domain],
],
function (Router $router): void {
$router->post('/login', 'Auth\AuthController@login');
}
); |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Subdomain Routing https://laravel.com/docs/master/routing#route-group-subdomain-routing
Can we please have this feature in Hypervel 🙏
Beta Was this translation helpful? Give feedback.
All reactions