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 information about view composers #766

Merged
merged 2 commits into from
Nov 14, 2019

Conversation

arjanwestdorp
Copy link
Contributor

This change adds information about used view composers. Since view composers are a bit magical and for people sometimes hard to figure out where data in their views is coming from. It seems useful to have this information available in telescope.

It’s showing information for view composers and view creators. In the index pages we only talk about composers though. I’ve followed the Laravel docs in this where the part about view creators is also a sub-section of view composers. In the composer detail screen it’s possible to see whether it’s a creator or composer.

A test is added with some example view files. As there currently was no test for the ViewWatcher.

Screenshots of the functionality

composers-in-request

composers-in-view-index

composers-in-view-preview

The way the view is shown in a table is slightly changed as views from vendor directories (with long names) would make the row jump out of the table, see example:
image

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