Answer the question
In order to leave comments, you need to log in
Why is there an Undefined offset: 1 error in laravel when sending an email?
Error description:
ErrorException
Undefined offset: 1
if (is_array($view) && isset($view[0])) {
return [$view[0], $view[1], null];
}
function send($text, $email, $username){
Mail::send(['text'], ['name', 'Уведомление'], function ($message){
$message->to($email, $username)->subject('Напоминание о событии');
$message->from('[email protected]', 'From');
}); // <<< SendController.php:52
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question