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

[1.x] Reduce verbosity by introducing a 'Guest' layout #52

Merged
merged 5 commits into from
Feb 18, 2021
Merged

[1.x] Reduce verbosity by introducing a 'Guest' layout #52

merged 5 commits into from
Feb 18, 2021

Conversation

claudiodekker
Copy link
Contributor

@claudiodekker claudiodekker commented Feb 18, 2021

This PR uses Inertia's persistent layouts feature to reduce verbosity in all 'guest' (auth) views. This makes the AuthenticationCard.vue component entirely redundant, while also making it easier for the developer to customize their fresh Breeze install.

Furthermore, as a side-effect of this change, it also fixes a bug where the application logo was being rendered but was invisible on the Auth/VerifyEmail page (due to missing the classes that were being assigned in all other views).

Next, because of this new Guest layout, I've also renamed the AppLayout to Authenticated, as both the guest-side of the application as well as the authenticated-side of the application are part of the 'app'.

Finally, I've aligned all usages of <slot></slot> to use <slot /> as was already the case in some views. This doesn't change the way anything works at all and is purely syntaxial.

@taylorotwell taylorotwell merged commit 79af4fe into laravel:1.x Feb 18, 2021
@claudiodekker claudiodekker deleted the add-guest-layout branch February 18, 2021 15:05
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