Skip to content

5.0.0 #134

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

Merged
merged 10 commits into from
Mar 7, 2025
Merged

5.0.0 #134

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: run-tests
on:
- push
- pull_request
- workflow_dispatch

jobs:
test:
Expand All @@ -13,7 +14,7 @@ jobs:
matrix:
os: [ubuntu-latest]
php: [8.0, 8.1, 8.2]
laravel: ['8.*', '9.*', '10.*', '11.*']
laravel: ['8.*', '9.*', '10.*', '11.*', '12.*']
stability: [prefer-stable]
exclude:
- php: 8.0
Expand All @@ -24,6 +25,10 @@ jobs:
php: 8.0
- laravel: 11.*
php: 8.1
- laravel: 12.*
php: 8.0
- laravel: 12.*
php: 8.1
include:
- laravel: 10.*
testbench: 8.*
Expand All @@ -33,6 +38,8 @@ jobs:
testbench: 6.23
- laravel: 11.*
testbench: 9.*
- laravel: 12.*
testbench: 10.*

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}

Expand All @@ -50,7 +57,7 @@ jobs:
- name: Install dependencies
run: |
composer install
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --dev --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction

- name: Execute tests
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ composer require beyondcode/laravel-mailbox

Take a look at the [official documentation](https://docs.beyondco.de/laravel-mailbox).

## Catch, test and debug application mails with Laravel Herd

Laravel Herd provides an integrated local email service, streamlining the process of testing and debugging application emails.
The email service organizes emails into distinct inboxes for each application, ensuring they are easily accessible and simple to locate.

[herd.laravel.com](https://herd.laravel.com)

![image](https://github.com/user-attachments/assets/6417907c-119d-43ac-9cf6-5638bafae24f)


### Testing

``` bash
Expand Down
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@
],
"require": {
"php": "^8.0",
"illuminate/container": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0",
"illuminate/database": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0",
"illuminate/log": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0",
"illuminate/routing": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0",
"illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0",
"illuminate/container": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0",
"illuminate/database": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0",
"illuminate/log": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0",
"illuminate/routing": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0",
"illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0",
"willdurand/email-reply-parser": "^2.8",
"zbateson/mail-mime-parser": "^1.1|^2.4"
"zbateson/mail-mime-parser": "^1.1|^2.4|^3.0"
},
"require-dev": {
"laminas/laminas-mail": "^2.13",
"mockery/mockery": "^1.2",
"orchestra/testbench": "^4.0|^5.0|^7.0|^8.0|^9.0",
"phpunit/phpunit": "^7.0|^8.0|^9.3|^10.5"
"orchestra/testbench": "^4.0|^5.0|^7.0|^8.0|^9.0|^10.0",
"phpunit/phpunit": "^7.0|^8.0|^9.3|^10.5|^11.5.3"
},
"autoload": {
"psr-4": {
Expand Down
3 changes: 2 additions & 1 deletion src/InboundEmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ public function forward($recipients)
return Mail::send([], [], function ($message) use ($recipients) {
$message->to($recipients)
->subject($this->subject())
->setBody($this->body(), $this->message()->getContentType());
->text($this->text())
->html($this->html());
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/Routing/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Router
/** @var Container */
protected $container;

public function __construct(Container $container = null)
public function __construct(?Container $container = null)
{
$this->container = $container ?: new Container;

Expand Down