I am trying to send an email with Laravel. I have a view in folder: views/emails/user.blade.php
with simple HTML.
I have created Mailable: php artisan make:mail UserEmail
. In my Controller where I am sending email:
Mail::send($request->user())
->queue(new PropertyAsk());
Mailable:
public function build()
{
return $this->from('some email')
->view('emails.user');
}
, but when I try it says:
"message": "Invalid view.", "exception": "InvalidArgumentException", "file": "...vendor/laravel/framework/src/Illuminate/Mail/Mailer.php", "line": 310,
I am sure that I have that view. I can return it with some method controller.
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2ZYyNRL
via IFTTT
Aucun commentaire:
Enregistrer un commentaire