«Объект класса Illuminate\Mail\Mailer не удалось преобразовать в строку»Php

Кемеровские программисты php общаются здесь
Гость
«Объект класса Illuminate\Mail\Mailer не удалось преобразовать в строку»

Сообщение Гость »


Я пытаюсь отправить подтверждение регистрации по электронной почте. Я создал

Код: Выделить всё

app>Mailers>AppMailer
.

Код: Выделить всё

class AppMailer {

protected $mailer;

protected $from = 'admin@example.com';

protected $to;

protected $view;

protected $data = [];

public function __construct(Mailer $mailer)
{
$this->$mailer = $mailer;   // Line 23
}
However, I am getting an error:

ErrorException in AppMailer.php line 23:
Object of class Illuminate\Mail\Mailer could not be converted to string


Источник: https://stackoverflow.com/questions/322 ... -to-string

Вернуться в «Php»