How to make auto login after registration in laravel
<p>I have encounterd a problem while regiserting user in laravel, <code>$user</code> suppose to be array which contains all array element while auto login the following code results <strong>false</strong>. The password save in the database is <code>hash::make('password')</code>.</p>

<pre><code>$user_id = $this-&gt;user_model-&gt;addUser($user);
$post = array('password' =&gt; $pass_for_auth, 'email' =&gt; $email);
var_dump(Auth::attempt($post,true));die;
</code></pre>

<p>Can any one tell me what is the correct problem</p>