Permission Key
{{ $permissionKey }}
Route Pattern
{{ $routePattern }}
Current Route Name
{{ $routeName }}
Create a custom permission in Permission Builder with key test_module and route pattern admin.test_module.*, assign it to a role, then login as a sub-admin to verify sidebar visibility and route protection.