. */ namespace App\Mail; use Illuminate\Bus\Queueable; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; use App\Account; class PasswordAuthentication extends Mailable { use Queueable, SerializesModels; private $_account; public function __construct(Account $account) { $this->_account = $account; } public function build() { return $this->view('mails.authentication') ->text('mails.authentication_text') ->with([ 'link' => route('account.authenticate.email_confirm', [$this->_account->confirmation_key]) ]); } }