Skip to content
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

How to add names for routes in groups #279

Open
dragomano opened this issue Feb 27, 2025 · 0 comments
Open

How to add names for routes in groups #279

dragomano opened this issue Feb 27, 2025 · 0 comments

Comments

@dragomano
Copy link

Describe the bug

This works:

app()->get('/', ['name' => 'home', function () {
    render('index');
}]);

And this doesn't work:

app()->group('/admin', ['name' => 'admin', function () {
    app()->resource('/users', 'UsersController');
}]);

Expected behavior

I want to get routes such like these:

  • admin.users.index
  • admin.users.create
  • etc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant