Hash::check() return false in laravel 5
<p>I'm just starting with laravel 5, I'm doing a simple login function to check if email and password passed by user matches with the email and password stored in the database. I've been reading the documentation ([<a href="https://laravel.com/docs/5.0/hashing" rel="nofollow">https://laravel.com/docs/5.0/hashing</a><a href="https://laravel.com/docs/5.0/hashing" rel="nofollow">1</a>) but <code>Hash::check($content['password'], $user-&gt;{'password'})</code> returns false always. My code looks like this.</p>

<p>When I create a new user I hash the password like that:</p>

<pre><code>$content = json_decode($request-&gt;getContent(), true);

$user -&gt; password = Hash::make($content['email']);
</code></pre>

<p>And my login function looks like that:</p>

<pre><code>public function login(Request $request)
{
    $content = json_decode($request -&gt; getContent(), true);

    $user = DB::table('users')-&gt;where('email', $content['email'])-&gt;first();


    if (Hash::check($content['password'], $user-&gt;{'password'}))
    {
       // Redirect to dashboard
    }
}
</code></pre>

<p>Thanks in advance!!     </p>