leaf
leaf copied to clipboard
How to add names for routes in groups
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.indexadmin.users.create- etc
Hi @dragomano, this is not yet fully supported in Leaf. I'll keep this issue open and update you when it is added in one of our later releases