$message->from($data['email'],$data['name']);
if (!$this->emailValidator->isValid($address, new RFCValidation())) {
throw new Swift_RfcComplianceException(
'Address in mailbox given ['.$address.'] does not comply with RFC 2822, 3.6.2.'
);
}
if ($err = stream_get_contents($pipes[2])) {
throw new Swift_TransportException(
'Process could not be started ['.$err.']'
);
}
protected $casts = [
'name' => 'boolean',
'text' => 'array'
];
protected $table = 'articles';
protected $primaryKey = 'id';
public $incrementing = TRUE;
public $timestamps = TRUE;
protected $fillable = ['name','text', 'img'];
protected $guarded = ['*'];
protected $dates = ['deleted_at'];