ChannelManager should be resolved not in register() but in boot().
It will break application bootstrap if ChannelManager is extended and the original Illuminate\Notifications\NotificationServiceProvider is replaced by extended App\Providers\NotificationServiceProvider.
Unresolvable dependency resolving [Parameter #0 [ <required> $app ]] in class Illuminate\Support\Manager
ChannelManager
should be resolved not inregister()
but inboot()
. It will break application bootstrap ifChannelManager
is extended and the originalIlluminate\Notifications\NotificationServiceProvider
is replaced by extendedApp\Providers\NotificationServiceProvider
.Related: https://github.com/laravel/slack-notification-channel/pull/10