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