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

Update MAILER config to use mailpit on L11 #678

Merged
merged 2 commits into from Mar 8, 2024

Conversation

SamuelMwangiW
Copy link
Contributor

Why?

Laravel 11 ships with the log driver as the default driver.

In Laravel 10, the default MAIL_PORT and MAIL_MAILER values matched the values expected to work with mailpit out of the box hence these values were not necessary to update.

Running php artisan sail:install --with mailpit on a fresh Laravel 11 project results in the following .env config

MAIL_MAILER=log
MAIL_HOST=mailpit
MAIL_PORT=2525

This still sends the emails to the log file for a user installing mailpit with sail in Laravel 11. This PR improves that DX by configuring the application to use mailpit by default for said users out of the box.

Copy link

github-actions bot commented Mar 7, 2024

Thanks for submitting a PR!

Note that draft PR's are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface.

Pull requests that are abandoned in draft may be closed due to inactivity.

@SamuelMwangiW SamuelMwangiW marked this pull request as ready for review March 7, 2024 22:03
@taylorotwell taylorotwell merged commit e40cc7f into laravel:1.x Mar 8, 2024
5 checks passed
@SamuelMwangiW SamuelMwangiW deleted the mailpit-port branch March 8, 2024 23:19
tisnamuliarta added a commit to tisnamuliarta/laravel-shadcn that referenced this pull request Mar 14, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [laravel/sail](https://togithub.com/laravel/sail) | `1.28.2` ->
`1.29.0` |
[![age](https://developer.mend.io/api/mc/badges/age/packagist/laravel%2fsail/1.29.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/packagist/laravel%2fsail/1.29.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/packagist/laravel%2fsail/1.28.2/1.29.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/packagist/laravel%2fsail/1.28.2/1.29.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>laravel/sail (laravel/sail)</summary>

###
[`v1.29.0`](https://togithub.com/laravel/sail/blob/HEAD/CHANGELOG.md#v1290---2024-03-08)

[Compare
Source](https://togithub.com/laravel/sail/compare/v1.28.2...v1.29.0)

- Allow building sail to run PHP as root by
[@&#8203;vmsh0](https://togithub.com/vmsh0) in
[laravel/sail#677
- Update MAILER config to use mailpit on L11 by
[@&#8203;SamuelMwangiW](https://togithub.com/SamuelMwangiW) in
[laravel/sail#678

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/tisnamuliarta/laravel-shadcn).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yMzguMSIsInVwZGF0ZWRJblZlciI6IjM3LjIzOC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
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.

None yet

2 participants