Zizaco/confide — pull request #375 by mvelikov (2014-08-06 09:03:23+00:00)
Title: Can't Send Confirmation Email when Creating User

When I create user with the default controller provided by confide I get following error:
#### Trying to get property of non-object (View: /Applications/MAMP/htdocs/ikollect/vendor/zizaco/confide/src/views/emails/confirm.blade.php)
which comes from the usage of ``$user`` as object in the view and ``$user`` is an array
#### zizaco/confide/src/views/emails/confirm.blade.php:3
``

$user->username)); ?>,

``

#### app/controllers/UsersController.php:28-38
public function store()
{
$repo = App::make('UserRepository');
$user = $repo->signup(Input::all());

if ($user->id) {
Mail::queueOn(
Config::get('confide::email_queue'),
Config::get('confide::email_account_confirmation'),
#### ``compact('user'),``
function ($message) use ($user) {
$message
->to($user->email, $user->username)