-
-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Controller groups #66
Comments
Hi @alexanderthegreat96 , |
Nope. You know how you use groups to define prefixes. How about using Controller groups. Just like laravel does it. So when you specify the group , how about specifying a controller for the group without having to declare it in each controller method. Like so $route->group('group',function() or $route->controller(MyController::class)->group('my-group',function() Understand now? |
Okay. For now, the Package no support such a usage like that but we can add this feature in next releases. I'll add it to my notes to implement it as soon as possible. |
Thank you. I really appreciate it. |
There is a rational suggestion, what I sent you by mail with the processing of an array of routes, then there you can specify the controller for the group. And process a group with one controller and with different methods. Within the current version. |
Is to possible to use controller groups. As Laravel does.
Defining controller + group in the same spot and then applying all the routes to the parent controller?
The text was updated successfully, but these errors were encountered: