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

Laravel Pennant Collector #1655

Merged

Conversation

AlexJump24
Copy link
Contributor

@AlexJump24 AlexJump24 commented Sep 9, 2024

I was using Laravel Pennant recently and wanted to know in the context of the page if a feature flag was enabled or not and had to result to outputting the state via Ray/dd outputs.

So I thought it would be quite handy to have a collector that is disabled by default that lists out the flags in a table format similar to models etc...

The pull request takes into account Laravel Pennant not being installed, or the specific case it is installed but not bound to the container.

I was hoping to write some tests but felt it would be difficult due to the external dependencies, similar to the Livewire collector.

I have done some manual testing with both array and database drivers and verified the output correctly renders.

image

image

Hopefully this could be of use to others? Happy to change anything, attempt further to add tests if required.

@barryvdh barryvdh merged commit 1f022ef into barryvdh:master Sep 10, 2024
25 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