DatabaseMessage.php
TLDR
The DatabaseMessage
class is responsible for creating a new database message with the provided data.
Classes
DatabaseMessage
The DatabaseMessage
class represents a database message that can be stored with a notification. It has the following properties and methods:
-
data
: An array that stores the data associated with the notification. -
__construct(array $data = [])
: The constructor method that initializes thedata
property with the provided data.
<?php
namespace Illuminate\Notifications\Messages;
class DatabaseMessage
{
/**
* The data that should be stored with the notification.
*
* @var array
*/
public $data = [];
/**
* Create a new database message.
*
* @param array $data
* @return void
*/
public function __construct(array $data = [])
{
$this->data = $data;
}
}