Multiple enhancements to interactive messages, moved messages to Notifications, send netmail back when invalid packet password
This commit is contained in:
@@ -6,8 +6,8 @@ use Illuminate\Notifications\ChannelManager;
|
||||
use Illuminate\Support\Facades\Notification;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
use App\Notifications\Channels\NetmailChannel;
|
||||
use App\Models\Netmail;
|
||||
use App\Notifications\Channels\{EchomailChannel,NetmailChannel};
|
||||
use App\Models\{Echomail,Netmail};
|
||||
use App\Traits\SingleOrFail;
|
||||
|
||||
class AppServiceProvider extends ServiceProvider
|
||||
@@ -22,6 +22,10 @@ class AppServiceProvider extends ServiceProvider
|
||||
public function register()
|
||||
{
|
||||
Notification::resolved(function (ChannelManager $service) {
|
||||
$service->extend('echomail', function ($app) {
|
||||
return new EchomailChannel($app->make(Echomail::class));
|
||||
});
|
||||
|
||||
$service->extend('netmail', function ($app) {
|
||||
return new NetmailChannel($app->make(Netmail::class));
|
||||
});
|
||||
|
Reference in New Issue
Block a user