how can i display errors message on blade template of laravel 5
<p>I created laravel 5.2 project. I have been created login page but I am stuck on display validation errors message on blade template. I don't know what I'm doing wrong?</p>
<p>Please help me for this issue. Thanks!</p>
<p>View</p>
<pre><code> &lt;div&gt;
    &lt;input type=&quot;text&quot; name=&quot;email&quot; class=&quot;form-control&quot; placeholder=&quot;Email&quot;/&gt;
    @if($errors-&gt;has('email')) &lt;p&gt;{{ $errors-&gt;first('email') }}&lt;/p&gt; @endif
 &lt;/div&gt;
</code></pre>
<p>Controller</p>
<pre><code>&lt;?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\User;
use Illuminate\Support\Facades\Validator;
use Illuminate\Support\Facades\Input;
use Illuminate\Support\Facades\Redirect;
use Illuminate\Support\MessageBag;


class AuthController extends Controller
{
    public function login()
    {
        return view('user.login');
    }

    /**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function handlelogin(Request $request)
    {
        $messages = array(
            'email.required'=&gt;'You cant leave Email field empty',
            'password.required'=&gt;'You cant leave name field empty'
        );

        $rules = array(
            'email' =&gt; 'required|email|max:20',
            'password' =&gt; 'required'
        );

        $validator = Validator::make($request-&gt;all(),$rules,$messages);

        if ($validator-&gt;fails())
        {
            return redirect()-&gt;back()-&gt;withErrors($validator-&gt;errors());

        }else{
        
            $data = $request-&gt;only('email','password');


            if(\Auth::attempt($data)){
                return redirect()-&gt;intended('/');
            }

        return back()-&gt;withInput();
        }
    }

 
}
</code></pre>