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

[11.x] Add "head" slot to email layout #53531

Merged
merged 1 commit into from
Nov 15, 2024
Merged

Conversation

hivokas
Copy link
Contributor

@hivokas hivokas commented Nov 15, 2024

Currently if I want to add a few lines of code to the head of email layout, I have to publish the entire file. But I'd prefer not to do it to keep the repository cleaner and to keep the email layout file up-to-date with the framework.

This PR adds a head slot which allows me to easily add a few lines of code to the head of email layout, like this:

<x-slot:head>
<style>
@media only screen and (max-width: 600px) {
.inner-body {
border-radius: 0 !important;
}
}
</style>
</x-slot:head>

If you find this addition useful, it would be cool to see it merged. If not, it's fine too because I can always publish the entire email layout file, even though I'd prefer not to.

@taylorotwell taylorotwell merged commit e9a5cd2 into laravel:11.x Nov 15, 2024
33 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