diff --git a/src/Database/MigrationServiceProvider.php b/src/Database/MigrationServiceProvider.php index 1df37be..efa155c 100644 --- a/src/Database/MigrationServiceProvider.php +++ b/src/Database/MigrationServiceProvider.php @@ -63,6 +63,7 @@ protected function registerRefreshCommand() * Set package path for command. * * @param object $command + * * @return object */ protected function getCommandWithPackage($command) diff --git a/src/Notifications/Messages/MailMessage.php b/src/Notifications/Messages/MailMessage.php index 420f986..418ba1f 100644 --- a/src/Notifications/Messages/MailMessage.php +++ b/src/Notifications/Messages/MailMessage.php @@ -14,4 +14,18 @@ class MailMessage extends Message * @var string */ public $view = 'orchestra/foundation::emails.notification'; + + /** + * Get an array representation of the message. + * + * @return array + */ + public function toArray() + { + $data = parent::toArray(); + + $data['title'] = $this->title; + + return $data; + } }