Skip to content

Commit

Permalink
Attach title to array.
Browse files Browse the repository at this point in the history
Signed-off-by: crynobone <crynobone@gmail.com>
  • Loading branch information
crynobone committed Sep 6, 2016
1 parent 4203b4f commit 989fe26
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Database/MigrationServiceProvider.php
Expand Up @@ -63,6 +63,7 @@ protected function registerRefreshCommand()
* Set package path for command.
*
* @param object $command
*
* @return object
*/
protected function getCommandWithPackage($command)
Expand Down
14 changes: 14 additions & 0 deletions src/Notifications/Messages/MailMessage.php
Expand Up @@ -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;
}
}

0 comments on commit 989fe26

Please sign in to comment.