Skip to content

How to add names for routes in groupsΒ #279

@dragomano

Description

@dragomano

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions