diff --git a/app/Mail/AccountCreated.php b/app/Mail/AccountCreated.php new file mode 100644 index 0000000..e767825 --- /dev/null +++ b/app/Mail/AccountCreated.php @@ -0,0 +1,16 @@ +markdown('mail.account-created') + ->subject('Welcome to our platform!') + ->to('user@example.com', 'User'); + } +} diff --git a/composer.json b/composer.json index 76df0a2..38a6d02 100644 --- a/composer.json +++ b/composer.json @@ -7,26 +7,26 @@ "require": { "php": "^8.3", "guzzlehttp/guzzle": "^7.8.1", - "laravel/framework": "^10.35.0", - "laravel/tinker": "^2.8.2", + "laravel/framework": "^10.44.0", + "laravel/tinker": "^2.9.0", "sentry/sentry-laravel": "^4.2.0", - "spatie/laravel-markdown": "^2.4.0", + "spatie/laravel-markdown": "^2.4.2", "spatie/shiki-php": "^1.3", - "xammie/mailbook": "^1.7" + "xammie/mailbook": "^1.8" }, "require-dev": { - "barryvdh/laravel-debugbar": "^3.9.2", - "barryvdh/laravel-ide-helper": "^2.13.0", - "fakerphp/faker": "^1.23", - "larastan/larastan": "^2.8", - "laravel/pint": "^1.13.7", - "laravel/sail": "^1.26.3", - "mockery/mockery": "^1.6.6", + "barryvdh/laravel-debugbar": "^3.10.4", + "barryvdh/laravel-ide-helper": "^2.15.0", + "fakerphp/faker": "^1.23.1", + "larastan/larastan": "^2.9", + "laravel/pint": "^1.13.11", + "laravel/sail": "^1.27.4", + "mockery/mockery": "^1.6.7", "nunomaduro/collision": "^7.10.0", - "pestphp/pest": "^2.28.0", + "pestphp/pest": "^2.33.6", "pestphp/pest-plugin-laravel": "^2.2", "rector/rector": "^1.0", - "spatie/laravel-ignition": "^2.3.1", + "spatie/laravel-ignition": "^2.4.2", "tomasvotruba/bladestan": "^0.5.0", "xammie/make-commands": "^0.5.0" }, diff --git a/composer.lock b/composer.lock index f303d3d..3c2adcc 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "a8987fabfeba9870edaf1589f935fdb5", + "content-hash": "1897db9bd1a64d6407a7a0a67990b1b1", "packages": [ { "name": "brick/math", @@ -1106,16 +1106,16 @@ }, { "name": "laravel/framework", - "version": "v10.43.0", + "version": "v10.44.0", "source": { "type": "git", "url": "https://github.com/laravel/framework.git", - "reference": "4f7802dfc9993cb57cf69615491ce1a7eb2e9529" + "reference": "1199dbe361787bbe9648131a79f53921b4148cf6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/framework/zipball/4f7802dfc9993cb57cf69615491ce1a7eb2e9529", - "reference": "4f7802dfc9993cb57cf69615491ce1a7eb2e9529", + "url": "https://api.github.com/repos/laravel/framework/zipball/1199dbe361787bbe9648131a79f53921b4148cf6", + "reference": "1199dbe361787bbe9648131a79f53921b4148cf6", "shasum": "" }, "require": { @@ -1163,6 +1163,7 @@ "conflict": { "carbonphp/carbon-doctrine-types": ">=3.0", "doctrine/dbal": ">=4.0", + "phpunit/phpunit": ">=11.0.0", "tightenco/collect": "<5.5.33" }, "provide": { @@ -1307,7 +1308,7 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2024-01-30T16:25:02+00:00" + "time": "2024-02-13T16:01:16+00:00" }, { "name": "laravel/prompts", @@ -3257,16 +3258,16 @@ }, { "name": "sentry/sentry", - "version": "4.5.0", + "version": "4.6.0", "source": { "type": "git", "url": "https://github.com/getsentry/sentry-php.git", - "reference": "a6e06f0b7a17e7f68e11297427da76bfe01a3ca3" + "reference": "30d98a460ab10f7b7032d76c62da5b1ce6c0765d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/getsentry/sentry-php/zipball/a6e06f0b7a17e7f68e11297427da76bfe01a3ca3", - "reference": "a6e06f0b7a17e7f68e11297427da76bfe01a3ca3", + "url": "https://api.github.com/repos/getsentry/sentry-php/zipball/30d98a460ab10f7b7032d76c62da5b1ce6c0765d", + "reference": "30d98a460ab10f7b7032d76c62da5b1ce6c0765d", "shasum": "" }, "require": { @@ -3330,7 +3331,7 @@ ], "support": { "issues": "https://github.com/getsentry/sentry-php/issues", - "source": "https://github.com/getsentry/sentry-php/tree/4.5.0" + "source": "https://github.com/getsentry/sentry-php/tree/4.6.0" }, "funding": [ { @@ -3342,7 +3343,7 @@ "type": "custom" } ], - "time": "2024-01-29T16:16:10+00:00" + "time": "2024-02-13T11:32:56+00:00" }, { "name": "sentry/sentry-laravel", @@ -6343,32 +6344,32 @@ }, { "name": "xammie/mailbook", - "version": "1.7.0", + "version": "1.8.0", "source": { "type": "git", "url": "https://github.com/Xammie/mailbook.git", - "reference": "db9e6578b5ad23ac0048406466a7b2612c8f405d" + "reference": "0b243ab8a7cc6be64c00dee0d0687cfea5bd8f1a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Xammie/mailbook/zipball/db9e6578b5ad23ac0048406466a7b2612c8f405d", - "reference": "db9e6578b5ad23ac0048406466a7b2612c8f405d", + "url": "https://api.github.com/repos/Xammie/mailbook/zipball/0b243ab8a7cc6be64c00dee0d0687cfea5bd8f1a", + "reference": "0b243ab8a7cc6be64c00dee0d0687cfea5bd8f1a", "shasum": "" }, "require": { - "illuminate/contracts": "^9.0|^10.0", + "illuminate/contracts": "^9.0 || ^10.0 || ^11.0", "php": "^8.0", "spatie/laravel-package-tools": "^1.9.2" }, "require-dev": { "infection/infection": "^0.26.13", + "larastan/larastan": "^2.8", "laravel/pint": "^v1.4.1", - "nunomaduro/collision": "^6.0|^7.0", - "nunomaduro/larastan": "^2.2", + "nunomaduro/collision": "^6.0 || ^7.0 || ^8.0", "nunomaduro/phpinsights": "^2.6", - "orchestra/testbench": "^7.0|^8.0", - "pestphp/pest": "^1.22|^2.0", - "pestphp/pest-plugin-laravel": "^1.1|^2.0", + "orchestra/testbench": "^7.0 || ^8.0", + "pestphp/pest": "^1.22 || ^2.0", + "pestphp/pest-plugin-laravel": "^1.1 || ^2.0 || ^3.0", "phpstan/extension-installer": "^1.1", "phpstan/phpstan-deprecation-rules": "^1.0", "phpstan/phpstan-phpunit": "^1.0", @@ -6412,7 +6413,7 @@ ], "support": { "issues": "https://github.com/Xammie/mailbook/issues", - "source": "https://github.com/Xammie/mailbook/tree/1.7.0" + "source": "https://github.com/Xammie/mailbook/tree/1.8.0" }, "funding": [ { @@ -6420,42 +6421,42 @@ "type": "github" } ], - "time": "2023-12-07T19:55:29+00:00" + "time": "2024-02-14T16:37:59+00:00" } ], "packages-dev": [ { "name": "barryvdh/laravel-debugbar", - "version": "v3.9.2", + "version": "v3.10.4", "source": { "type": "git", "url": "https://github.com/barryvdh/laravel-debugbar.git", - "reference": "bfd0131c146973cab164e50f5cdd8a67cc60cab1" + "reference": "09d3dc77d7dc1b063e3728a6029c39ee0fbebf1d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/barryvdh/laravel-debugbar/zipball/bfd0131c146973cab164e50f5cdd8a67cc60cab1", - "reference": "bfd0131c146973cab164e50f5cdd8a67cc60cab1", + "url": "https://api.github.com/repos/barryvdh/laravel-debugbar/zipball/09d3dc77d7dc1b063e3728a6029c39ee0fbebf1d", + "reference": "09d3dc77d7dc1b063e3728a6029c39ee0fbebf1d", "shasum": "" }, "require": { - "illuminate/routing": "^9|^10", - "illuminate/session": "^9|^10", - "illuminate/support": "^9|^10", - "maximebf/debugbar": "^1.18.2", + "illuminate/routing": "^9|^10|^11", + "illuminate/session": "^9|^10|^11", + "illuminate/support": "^9|^10|^11", + "maximebf/debugbar": "~1.20.1", "php": "^8.0", - "symfony/finder": "^6" + "symfony/finder": "^6|^7" }, "require-dev": { "mockery/mockery": "^1.3.3", - "orchestra/testbench-dusk": "^5|^6|^7|^8", + "orchestra/testbench-dusk": "^5|^6|^7|^8|^9", "phpunit/phpunit": "^8.5.30|^9.0", "squizlabs/php_codesniffer": "^3.5" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "3.8-dev" + "dev-master": "3.10-dev" }, "laravel": { "providers": [ @@ -6494,7 +6495,7 @@ ], "support": { "issues": "https://github.com/barryvdh/laravel-debugbar/issues", - "source": "https://github.com/barryvdh/laravel-debugbar/tree/v3.9.2" + "source": "https://github.com/barryvdh/laravel-debugbar/tree/v3.10.4" }, "funding": [ { @@ -6506,43 +6507,43 @@ "type": "github" } ], - "time": "2023-08-25T18:43:57+00:00" + "time": "2024-02-14T08:52:12+00:00" }, { "name": "barryvdh/laravel-ide-helper", - "version": "v2.14.0", + "version": "v2.15.0", "source": { "type": "git", "url": "https://github.com/barryvdh/laravel-ide-helper.git", - "reference": "485c756f6cff408d6b273274c5e86112c3973d98" + "reference": "dca3ebe81ea385632651791cb8b3db42153c380c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/barryvdh/laravel-ide-helper/zipball/485c756f6cff408d6b273274c5e86112c3973d98", - "reference": "485c756f6cff408d6b273274c5e86112c3973d98", + "url": "https://api.github.com/repos/barryvdh/laravel-ide-helper/zipball/dca3ebe81ea385632651791cb8b3db42153c380c", + "reference": "dca3ebe81ea385632651791cb8b3db42153c380c", "shasum": "" }, "require": { "barryvdh/reflection-docblock": "^2.0.6", "composer/class-map-generator": "^1.0", - "doctrine/dbal": "^2.6 || ^3", + "doctrine/dbal": "^2.6 || ^3.1.4", "ext-json": "*", - "illuminate/console": "^8 || ^9 || ^10", - "illuminate/filesystem": "^8 || ^9 || ^10", - "illuminate/support": "^8 || ^9 || ^10", + "illuminate/console": "^9 || ^10", + "illuminate/filesystem": "^9 || ^10", + "illuminate/support": "^9 || ^10", "nikic/php-parser": "^4.18 || ^5", - "php": "^7.3 || ^8.0", + "php": "^8.0", "phpdocumentor/type-resolver": "^1.1.0" }, "require-dev": { "ext-pdo_sqlite": "*", - "friendsofphp/php-cs-fixer": "^2", - "illuminate/config": "^8 || ^9 || ^10", - "illuminate/view": "^8 || ^9 || ^10", + "friendsofphp/php-cs-fixer": "^3", + "illuminate/config": "^9 || ^10", + "illuminate/view": "^9 || ^10", "mockery/mockery": "^1.4", - "orchestra/testbench": "^6 || ^7 || ^8", - "phpunit/phpunit": "^8.5 || ^9", - "spatie/phpunit-snapshot-assertions": "^3 || ^4", + "orchestra/testbench": "^7 || ^8", + "phpunit/phpunit": "^9", + "spatie/phpunit-snapshot-assertions": "^4", "vimeo/psalm": "^5.4" }, "suggest": { @@ -6551,7 +6552,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.14-dev" + "dev-master": "2.15-dev" }, "laravel": { "providers": [ @@ -6588,7 +6589,7 @@ ], "support": { "issues": "https://github.com/barryvdh/laravel-ide-helper/issues", - "source": "https://github.com/barryvdh/laravel-ide-helper/tree/v2.14.0" + "source": "https://github.com/barryvdh/laravel-ide-helper/tree/v2.15.0" }, "funding": [ { @@ -6600,7 +6601,7 @@ "type": "github" } ], - "time": "2024-02-05T08:16:36+00:00" + "time": "2024-02-14T11:19:26+00:00" }, { "name": "barryvdh/reflection-docblock", @@ -7484,16 +7485,16 @@ }, { "name": "larastan/larastan", - "version": "v2.8.1", + "version": "v2.9.0", "source": { "type": "git", "url": "https://github.com/larastan/larastan.git", - "reference": "b7cc6a29c457a7d4f3de90466392ae9ad3e17022" + "reference": "35fa9cbe1895e76215bbe74571a344f2705fbe01" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/larastan/larastan/zipball/b7cc6a29c457a7d4f3de90466392ae9ad3e17022", - "reference": "b7cc6a29c457a7d4f3de90466392ae9ad3e17022", + "url": "https://api.github.com/repos/larastan/larastan/zipball/35fa9cbe1895e76215bbe74571a344f2705fbe01", + "reference": "35fa9cbe1895e76215bbe74571a344f2705fbe01", "shasum": "" }, "require": { @@ -7561,7 +7562,7 @@ ], "support": { "issues": "https://github.com/larastan/larastan/issues", - "source": "https://github.com/larastan/larastan/tree/v2.8.1" + "source": "https://github.com/larastan/larastan/tree/v2.9.0" }, "funding": [ { @@ -7581,20 +7582,20 @@ "type": "patreon" } ], - "time": "2024-01-08T09:11:17+00:00" + "time": "2024-02-13T11:49:22+00:00" }, { "name": "laravel/pint", - "version": "v1.13.10", + "version": "v1.13.11", "source": { "type": "git", "url": "https://github.com/laravel/pint.git", - "reference": "e2b5060885694ca30ac008c05dc9d47f10ed1abf" + "reference": "60a163c3e7e3346a1dec96d3e6f02e6465452552" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/pint/zipball/e2b5060885694ca30ac008c05dc9d47f10ed1abf", - "reference": "e2b5060885694ca30ac008c05dc9d47f10ed1abf", + "url": "https://api.github.com/repos/laravel/pint/zipball/60a163c3e7e3346a1dec96d3e6f02e6465452552", + "reference": "60a163c3e7e3346a1dec96d3e6f02e6465452552", "shasum": "" }, "require": { @@ -7605,13 +7606,13 @@ "php": "^8.1.0" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^3.47.1", - "illuminate/view": "^10.41.0", + "friendsofphp/php-cs-fixer": "^3.49.0", + "illuminate/view": "^10.43.0", "larastan/larastan": "^2.8.1", "laravel-zero/framework": "^10.3.0", "mockery/mockery": "^1.6.7", "nunomaduro/termwind": "^1.15.1", - "pestphp/pest": "^2.31.0" + "pestphp/pest": "^2.33.6" }, "bin": [ "builds/pint" @@ -7647,20 +7648,20 @@ "issues": "https://github.com/laravel/pint/issues", "source": "https://github.com/laravel/pint" }, - "time": "2024-01-22T09:04:15+00:00" + "time": "2024-02-13T17:20:13+00:00" }, { "name": "laravel/sail", - "version": "v1.27.3", + "version": "v1.27.4", "source": { "type": "git", "url": "https://github.com/laravel/sail.git", - "reference": "7e01b345072c9604ead9d7aed175bf7ac1d80289" + "reference": "3047e1a157fad968cc5f6e620d5cbe5c0867fffd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/sail/zipball/7e01b345072c9604ead9d7aed175bf7ac1d80289", - "reference": "7e01b345072c9604ead9d7aed175bf7ac1d80289", + "url": "https://api.github.com/repos/laravel/sail/zipball/3047e1a157fad968cc5f6e620d5cbe5c0867fffd", + "reference": "3047e1a157fad968cc5f6e620d5cbe5c0867fffd", "shasum": "" }, "require": { @@ -7679,9 +7680,6 @@ ], "type": "library", "extra": { - "branch-alias": { - "dev-master": "1.x-dev" - }, "laravel": { "providers": [ "Laravel\\Sail\\SailServiceProvider" @@ -7712,26 +7710,26 @@ "issues": "https://github.com/laravel/sail/issues", "source": "https://github.com/laravel/sail" }, - "time": "2024-01-30T03:03:59+00:00" + "time": "2024-02-08T15:24:21+00:00" }, { "name": "maximebf/debugbar", - "version": "v1.19.1", + "version": "v1.20.1", "source": { "type": "git", "url": "https://github.com/maximebf/php-debugbar.git", - "reference": "03dd40a1826f4d585ef93ef83afa2a9874a00523" + "reference": "06ebf922ccedfa4cc43015825697ee8c1fb80f7e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/maximebf/php-debugbar/zipball/03dd40a1826f4d585ef93ef83afa2a9874a00523", - "reference": "03dd40a1826f4d585ef93ef83afa2a9874a00523", + "url": "https://api.github.com/repos/maximebf/php-debugbar/zipball/06ebf922ccedfa4cc43015825697ee8c1fb80f7e", + "reference": "06ebf922ccedfa4cc43015825697ee8c1fb80f7e", "shasum": "" }, "require": { "php": "^7.1|^8", "psr/log": "^1|^2|^3", - "symfony/var-dumper": "^4|^5|^6" + "symfony/var-dumper": "^4|^5|^6|^7" }, "require-dev": { "phpunit/phpunit": ">=7.5.20 <10.0", @@ -7745,7 +7743,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.18-dev" + "dev-master": "1.20-dev" } }, "autoload": { @@ -7776,9 +7774,9 @@ ], "support": { "issues": "https://github.com/maximebf/php-debugbar/issues", - "source": "https://github.com/maximebf/php-debugbar/tree/v1.19.1" + "source": "https://github.com/maximebf/php-debugbar/tree/v1.20.1" }, - "time": "2023-10-12T08:10:52+00:00" + "time": "2024-02-13T19:03:14+00:00" }, { "name": "mockery/mockery", @@ -8020,16 +8018,16 @@ }, { "name": "pestphp/pest", - "version": "v2.33.4", + "version": "v2.33.6", "source": { "type": "git", "url": "https://github.com/pestphp/pest.git", - "reference": "4baf27911e088cd27c0114bd9b4ee579203f8810" + "reference": "5b0f88c22716452be59202cfe7c5a24fbb2fb7de" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/pestphp/pest/zipball/4baf27911e088cd27c0114bd9b4ee579203f8810", - "reference": "4baf27911e088cd27c0114bd9b4ee579203f8810", + "url": "https://api.github.com/repos/pestphp/pest/zipball/5b0f88c22716452be59202cfe7c5a24fbb2fb7de", + "reference": "5b0f88c22716452be59202cfe7c5a24fbb2fb7de", "shasum": "" }, "require": { @@ -8039,10 +8037,10 @@ "pestphp/pest-plugin": "^2.1.1", "pestphp/pest-plugin-arch": "^2.7.0", "php": "^8.1.0", - "phpunit/phpunit": "^10.5.9" + "phpunit/phpunit": "^10.5.10" }, "conflict": { - "phpunit/phpunit": ">10.5.9", + "phpunit/phpunit": ">10.5.10", "sebastian/exporter": "<5.1.0", "webmozart/assert": "<1.11.0" }, @@ -8112,7 +8110,7 @@ ], "support": { "issues": "https://github.com/pestphp/pest/issues", - "source": "https://github.com/pestphp/pest/tree/v2.33.4" + "source": "https://github.com/pestphp/pest/tree/v2.33.6" }, "funding": [ { @@ -8124,7 +8122,7 @@ "type": "github" } ], - "time": "2024-02-02T16:54:54+00:00" + "time": "2024-02-12T08:55:32+00:00" }, { "name": "pestphp/pest-plugin", @@ -8752,16 +8750,16 @@ }, { "name": "phpstan/phpstan", - "version": "1.10.57", + "version": "1.10.58", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "1627b1d03446904aaa77593f370c5201d2ecc34e" + "reference": "a23518379ec4defd9e47cbf81019526861623ec2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/1627b1d03446904aaa77593f370c5201d2ecc34e", - "reference": "1627b1d03446904aaa77593f370c5201d2ecc34e", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/a23518379ec4defd9e47cbf81019526861623ec2", + "reference": "a23518379ec4defd9e47cbf81019526861623ec2", "shasum": "" }, "require": { @@ -8810,7 +8808,7 @@ "type": "tidelift" } ], - "time": "2024-01-24T11:51:34+00:00" + "time": "2024-02-12T20:02:57+00:00" }, { "name": "phpunit/php-code-coverage", @@ -9135,16 +9133,16 @@ }, { "name": "phpunit/phpunit", - "version": "10.5.9", + "version": "10.5.10", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "0bd663704f0165c9e76fe4f06ffa6a1ca727fdbe" + "reference": "50b8e314b6d0dd06521dc31d1abffa73f25f850c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/0bd663704f0165c9e76fe4f06ffa6a1ca727fdbe", - "reference": "0bd663704f0165c9e76fe4f06ffa6a1ca727fdbe", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/50b8e314b6d0dd06521dc31d1abffa73f25f850c", + "reference": "50b8e314b6d0dd06521dc31d1abffa73f25f850c", "shasum": "" }, "require": { @@ -9216,7 +9214,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.9" + "source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.10" }, "funding": [ { @@ -9232,7 +9230,7 @@ "type": "tidelift" } ], - "time": "2024-01-22T14:35:40+00:00" + "time": "2024-02-04T09:07:51+00:00" }, { "name": "psr/cache", diff --git a/resources/views/mail/account-created.blade.php b/resources/views/mail/account-created.blade.php new file mode 100644 index 0000000..82d1714 --- /dev/null +++ b/resources/views/mail/account-created.blade.php @@ -0,0 +1,8 @@ +@component('mail::message') +# Hello user, + +Thank you for creating an account with us. + +Thanks,
+{{ config('app.name') }} +@endcomponent diff --git a/resources/views/mail/account-deleted.blade.php b/resources/views/mail/account-deleted.blade.php index 9942eeb..1a014b2 100644 --- a/resources/views/mail/account-deleted.blade.php +++ b/resources/views/mail/account-deleted.blade.php @@ -1,7 +1,7 @@ @component('mail::message') # Hello user, -Your account has been deleted. +Your account has been deleted. We're sorry to see you go. Thanks,
{{ config('app.name') }} diff --git a/routes/mailbook.php b/routes/mailbook.php index 410af2c..f4e6bbf 100644 --- a/routes/mailbook.php +++ b/routes/mailbook.php @@ -1,5 +1,6 @@ label('Welcome to Mailbook'); Mailbook::add(Changelog::class); -Mailbook::add(OrderCreated::class); -Mailbook::add(OrderShipped::class) - ->variant('Tracking link', fn (): OrderShipped => new OrderShipped(true)) - ->variant('Post', fn (): OrderShipped => new OrderShipped(false)); -Mailbook::add(AccountDeleted::class); + +Mailbook::category('Orders')->group(function () { + Mailbook::add(OrderCreated::class); + Mailbook::add(OrderShipped::class) + ->variant('Tracking link', fn (): OrderShipped => new OrderShipped(true)) + ->variant('Post', fn (): OrderShipped => new OrderShipped(false)); +}); + +Mailbook::category('Account')->group(function () { + Mailbook::add(AccountCreated::class); + Mailbook::add(AccountDeleted::class); +});