Skip to content

Instantly share code, notes, and snippets.

@thannaske
Last active May 18, 2018 19:07
Show Gist options
  • Save thannaske/e62d0580ac905b23c004d338d143c1da to your computer and use it in GitHub Desktop.
Save thannaske/e62d0580ac905b23c004d338d143c1da to your computer and use it in GitHub Desktop.
<?php
// [...]
protected $user;
/**
* Create a new message instance.
*
* @return void
*/
public function __construct($user)
{
$this->user = $user;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
return $this->view('emails.confirmation', [
'token' => $this->user->confirmation_token,
'id' => $this->user->id,
]);
}
// [...]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment