Skip to content

v1.3.0

Choose a tag to compare

@milewski milewski released this 01 Mar 10:17
  • 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