Releases: dcasia/collapsible-resource-manager
Releases · dcasia/collapsible-resource-manager
v2.0.0
1.4.2
1.4.1
1.4.0
v1.3.3
v1.3.2
v1.3.1
v1.3.0
- Upgrade Dependencies
- Lazy evaluate resources from TopLevelResource
Now what is within the callback will only evaluate when the canSee method passes:
TopLevelResource::make([
'label' => 'Administration',
'resources' => function () {
return [
NovaResource::make(Organization::class),
NovaResource::make(User::class),
NovaResource::make(Venue::class),
];
},
])->canSee(fn() => true),
// array form still supported