Skip to content

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
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