diff --git a/src/Illuminate/Notifications/ChannelManager.php b/src/Illuminate/Notifications/ChannelManager.php index 5d0da4bf3cbf..5f89e829b895 100644 --- a/src/Illuminate/Notifications/ChannelManager.php +++ b/src/Illuminate/Notifications/ChannelManager.php @@ -17,11 +17,11 @@ class ChannelManager extends Manager implements DispatcherContract, FactoryContract { /** - * The default channels used to deliver messages. + * The default channel used to deliver messages. * - * @var array + * @var string */ - protected $defaultChannels = ['mail', 'database']; + protected $defaultChannel = 'mail'; /** * Send the given notification to the given notifiable entities. @@ -206,19 +206,19 @@ protected function createDriver($driver) } /** - * Get the default channel driver names. + * Get the default channel driver name. * - * @return array + * @return string */ public function getDefaultDriver() { - return $this->defaultChannels; + return $this->defaultChannel; } /** - * Get the default channel driver names. + * Get the default channel driver name. * - * @return array + * @return string */ public function deliversVia() { @@ -226,13 +226,13 @@ public function deliversVia() } /** - * Set the default channel driver names. + * Set the default channel driver name. * - * @param array|string $channels + * @param string $channel * @return void */ - public function deliverVia($channels) + public function deliverVia($channel) { - $this->defaultChannels = (array) $channels; + $this->defaultChannel = $channel; } }