Enabled netmail test message

This commit is contained in:
Deon George
2021-11-27 00:36:57 +11:00
parent b35655a163
commit e0239d95a8
4 changed files with 198 additions and 0 deletions

View File

@@ -2,9 +2,13 @@
namespace App\Providers;
use Illuminate\Notifications\ChannelManager;
use Illuminate\Support\Facades\Notification;
use Illuminate\Support\ServiceProvider;
use Laravel\Passport\Passport;
use App\Notifications\Channels\NetmailChannel;
use App\Models\Netmail;
use App\Traits\SingleOrFail;
class AppServiceProvider extends ServiceProvider
@@ -19,6 +23,12 @@ class AppServiceProvider extends ServiceProvider
public function register()
{
Passport::ignoreMigrations();
Notification::resolved(function (ChannelManager $service) {
$service->extend('netmail', function ($app) {
return new NetmailChannel($app->make(Netmail::class));
});
});
}
/**