Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add configuration options for navigation badges #237

Merged
merged 2 commits into from
Jan 13, 2024
Merged

Conversation

Edsardio
Copy link
Contributor

To start off, just like you mentioned in Discord, naming variables isn't my strongest suit.

This adds a configuration option for the navigation badges.
I created an Enum so people will be able to disable the navigation badges for specific resources if desired instead of just all of them.

Some examples:

This will hide all navigation badges

BoltPlugin::make()
    ->hideNavigationBadges()

This will show all navigation badges (default)

BoltPlugin::make()
    ->showNavigationBadges()

This will hide only the CollectionResource navigation badge

BoltPlugin::make()
    ->hideNavigationBadges(resource: LaraZeus\Bolt\Resources::CollectionResource)

This will show only the FormResource navigation badge

BoltPlugin::make()
    ->hideNavigationBadges()
    ->showNavigationBadges(resource: LaraZeus\Bolt\Resources::CollectionResource)

If you have any questions or want anything changed just let me know!

@Edsardio
Copy link
Contributor Author

Apparently while removing my editors auto code style formatting I was a bit too careless and accidentally removed the properties in the configuration class, added those again in the last commit.

@atmonshi
Copy link
Member

Thank you @Edsardio so much
all looks good, will release it soon

@atmonshi atmonshi merged commit 135dd7a into lara-zeus:3.x Jan 13, 2024
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants