Skip to content

Commit

Permalink
Merge pull request #18 from lara-zeus/disable-resources
Browse files Browse the repository at this point in the history
allow to disable resources
  • Loading branch information
atmonshi authored Mar 31, 2024
2 parents a5f2302 + df08963 commit ca36456
Show file tree
Hide file tree
Showing 6 changed files with 98 additions and 69 deletions.
130 changes: 65 additions & 65 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions src/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ trait Configuration
'TagType' => \LaraZeus\Tartarus\Enums\TagTypes::class,
];

protected array $disableResources = [];

public function navigationGroupLabel(Closure | string $label): static
{
$this->navigationGroupLabel = $label;
Expand Down Expand Up @@ -44,4 +46,16 @@ public static function getModel(string $model): string
{
return (new static())::get()->getTartarusModels()[$model];
}

public function disableResources(array $resources): static
{
$this->disableResources = $resources;

return $this;
}

public function getDisabledResources(): ?array
{
return $this->disableResources;
}
}
Loading

0 comments on commit ca36456

Please sign in to comment.