Laravel: How to login with Hash password in laravel applicaiton
<p>Here is the scenario: </p>

<p>I have made a random hash password and I send it to user mail with login details(eg. mail). User got the mail but he couldn't login in site with that hash password. How do I solve this?</p>

<p>Here is my controller:</p>

<pre><code>public function sendEmail(Request $request, $id)
    {
        $user = User::findOrFail($id);
           $user-&gt;password=Hash::make(str_random(4));

         $user-&gt;update($request-&gt;all( ));    

        Mail::send('mail', ['user' =&gt; $user], function ($m) use ($user) {
                $m-&gt;from('xxxxxx.com', 'xxx');
                $m-&gt;to($user-&gt;email, $user-&gt;name)-&gt;subject('Thanks!');
        });
    }
</code></pre>

<p>Any possible suggestion please! </p>