Reputation: 4030
Is there any way to load module conditionally or prevent module access in some conditions? I just want to load modules and its subroutes only a specific condition satisfied.
The possible solution I tried till now
Is there any effective way to achieve the same so that.
Any help in this regard appreciated TIA.
Upvotes: 1
Views: 1616
Reputation: 947
check the CanLoad guard.
Interface that a class can implement to be a guard deciding if a children can be loaded.
Upvotes: 2