Whenever the from() method is called in a Mailable class the following exception is thrown:
Missing argument 2 for Illuminate\Database\Eloquent\Model::setAttribute(), called in {omitted}/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php on line 518 and defined...
Steps To Reproduce:
I just created a new mailable class with the following build() method:
/**
* Build the message.
*
* @return $this
*/
public function build()
{
return $this->from('test@test.com')
->markdown('emails.user.invite')
->with([
'user' => $this->user,
'from' => $this->from
]);
}
Removing the from() method from the chain allows the email to be sent but no sender will be set.
Description:
Whenever the
from()
method is called in aMailable
class the following exception is thrown:Steps To Reproduce:
I just created a new mailable class with the following
build()
method:Removing the
from()
method from the chain allows the email to be sent but no sender will be set.