Laravel 5.2 - Auth: display custom error messages
<p>How can I customize the error messages (such as <code>"These credentials do not match our records."</code>) that are displayed upon unsuccessful login/registration without having to touch the foundation files? I'm looking for a solution and hopefully an elegant one, at least not touching <code>AuthenticatesAndRegistersUsers</code> nor <code>ThrottlesLogins</code> :)</p>

<p>I'm using the <code>AuthController</code> and forms provided by Laravel after executing: </p>

<blockquote>
  <p>php artisan make:auth</p>
</blockquote>

<p><strong>Controller:</strong></p>

<p>(it only has a constructor and two methods, the rest falls on the foundation, the methods are:)</p>

<pre><code>protected function validator(array $data)
{
    return Validator::make($data, [
        'name' =&gt; 'required|max:255',
        'email' =&gt; 'required|email|max:255|unique:users',
        'password' =&gt; 'required|confirmed|min:6',
    ]);
}
protected function create(array $data)
{
    return User::create([
        'name' =&gt; $data['name'],
        'email' =&gt; $data['email'],
        'password' =&gt; bcrypt($data['password']),
    ]);
}
</code></pre>

<p><strong>Form:</strong></p>

<pre><code>&lt;form class="form-horizontal" role="form" method="POST" action="{{ url('/login') }}"&gt;
{!! csrf_field() !!}

&lt;div class="form-group{{ $errors-&gt;has('email') ? ' has-error' : '' }}"&gt;
    &lt;label class="col-md-4 control-label"&gt;E-Mail&lt;/label&gt;

    &lt;div class="col-md-6"&gt;
        &lt;input type="email" class="form-control" name="email" value="{{ old('email') }}" required&gt;

        @if ($errors-&gt;has('email'))
            &lt;span class="help-block"&gt;
                &lt;strong&gt;{{ $errors-&gt;first('email') }}&lt;/strong&gt;
            &lt;/span&gt;
        @endif
    &lt;/div&gt;
&lt;/div&gt;

&lt;div class="form-group{{ $errors-&gt;has('password') ? ' has-error' : '' }}"&gt;
    &lt;label class="col-md-4 control-label"&gt;Password&lt;/label&gt;

    &lt;div class="col-md-6"&gt;
        &lt;input type="password" class="form-control" name="password" required&gt;

        @if ($errors-&gt;has('password'))
            &lt;span class="help-block"&gt;
                &lt;strong&gt;{{ $errors-&gt;first('password') }}&lt;/strong&gt;
            &lt;/span&gt;
        @endif
    &lt;/div&gt;
&lt;/div&gt;

&lt;div class="form-group"&gt;
    &lt;div class="col-md-6 col-md-offset-4"&gt;
        &lt;div class="checkbox"&gt;
            &lt;label&gt;
                &lt;input type="checkbox" name="remember"&gt; Remember Me
            &lt;/label&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;

&lt;div class="form-group"&gt;
    &lt;div class="col-md-6 col-md-offset-4"&gt;
        &lt;button type="submit" class="btn btn-primary"&gt;
            &lt;i class="fa fa-btn fa-sign-in"&gt;&lt;/i&gt;Login
        &lt;/button&gt;

        &lt;a class="btn btn-link" href="{{ url('/password/reset') }}"&gt;Forgot Your Password?&lt;/a&gt;
    &lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p></p>

<p>Thank you!</p>