From 89a34d98e973aab2593b59da5e03c9c86d3e2511 Mon Sep 17 00:00:00 2001 From: joelharkes Date: Tue, 21 Feb 2023 20:29:47 +0100 Subject: [PATCH 1/2] Add laravel 10 version control --- .github/workflows/run-tests.yml | 18 +++++++----------- composer.json | 12 ++++++------ 2 files changed, 13 insertions(+), 17 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 67ce618..9e19b52 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -10,24 +10,20 @@ jobs: matrix: os: [ubuntu-latest] php: [7.4, 8.0, 8.1] - laravel: [9.*, 8.*, 7.*, 6.*] + laravel: [9.*, 10.*] stability: [prefer-stable] exclude: + - php: 7.4 + laravel: 10.* + - php: 8.0 + laravel: 10.* - php: 7.4 laravel: 9.* - - php: 8.1 - laravel: 7.* - - php: 8.1 - laravel: 6.* include: + - laravel: 10.* + testbench: 8.* - laravel: 9.* testbench: 7.* - - laravel: 8.* - testbench: 6.23 - - laravel: 7.* - testbench: 5.20.0 - - laravel: 6.* - testbench: 4.18.0 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} diff --git a/composer.json b/composer.json index c6cd9c1..bd55bb2 100644 --- a/composer.json +++ b/composer.json @@ -17,18 +17,18 @@ ], "require": { "php": "^7.3|^8.0", - "illuminate/container": "^6.0|^7.0|^8.0|^9.0", - "illuminate/database": "^6.0|^7.0|^8.0|^9.0", - "illuminate/log": "^6.0|^7.0|^8.0|^9.0", - "illuminate/routing": "^6.0|^7.0|^8.0|^9.0", - "illuminate/support": "^6.0|^7.0|^8.0|^9.0", + "illuminate/container": "^9.0|^10.0", + "illuminate/database": "^9.0|^10.0", + "illuminate/log": "^9.0|^10.0", + "illuminate/routing": "^9.0|^10.0", + "illuminate/support": "^9.0|^10.0", "willdurand/email-reply-parser": "^2.8", "zbateson/mail-mime-parser": "^2.2" }, "require-dev": { "laminas/laminas-mail": "^2.13", "mockery/mockery": "^1.2", - "orchestra/testbench": "^4.0|^5.0|^7.0", + "orchestra/testbench": "^7.0|^8.0", "phpunit/phpunit": "^7.0|^8.0|^9.3" }, "autoload": { From daf8078c2f8536745375f5e675213df0855ca5bc Mon Sep 17 00:00:00 2001 From: joelharkes Date: Tue, 21 Feb 2023 21:04:13 +0100 Subject: [PATCH 2/2] Document facade methods --- src/Facades/Mailbox.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/Facades/Mailbox.php b/src/Facades/Mailbox.php index c48e66e..cfd2da9 100644 --- a/src/Facades/Mailbox.php +++ b/src/Facades/Mailbox.php @@ -2,8 +2,34 @@ namespace BeyondCode\Mailbox\Facades; +use BeyondCode\Mailbox\Drivers\DriverInterface; +use BeyondCode\Mailbox\Drivers\Log; +use BeyondCode\Mailbox\Drivers\MailCare; +use BeyondCode\Mailbox\Drivers\Mailgun; +use BeyondCode\Mailbox\Drivers\Postmark; +use BeyondCode\Mailbox\Drivers\SendGrid; +use BeyondCode\Mailbox\InboundEmail; +use BeyondCode\Mailbox\Routing\Route; use Illuminate\Support\Facades\Facade; +/** + * @see \BeyondCode\Mailbox\Routing\Router + * @method static Route from(string $pattern, callable $action): + * @method static Route to(string $pattern, callable $action) + * @method static Route cc(string $pattern, callable $action) + * @method static Route bcc(string $pattern, callable $action) + * @method static void callMailboxes(InboundEmail $email) + * @method static void catchAll(callable $action) + * @method static void fallback(callable $action) + * + * @see MailboxManager + * @method static DriverInterface mailbox() + * @method static Log createLogDriver() + * @method static Mailgun createMailgunDriver() + * @method static SendGrid createSendGridDriver() + * @method static MailCare createMailCareDriver() + * @method static Postmark createPostmarkDriver() + */ class Mailbox extends Facade { protected static function getFacadeAccessor()