title: Laravel, Validation with custom field names
body: <p>I'm saving data that pass my validation. The validation is setted in a array called $rules:</p>
  
  <pre><code>$rules = array(
          'name_field' =&gt; 'required|unique:users',
          'number_in_db' =&gt; 'required',
      );
  $validator = Validator::make($request-&gt;all(), $rules);
  if ($validator-&gt;passes()) {
      MyModel::create($request-&gt;input());
  
      return redirect()-&gt;route('some.route')-&gt;withFlashSuccess('Done!');
      } else
      return redirect()-&gt;back()-&gt;withInput()-&gt;withErrors($validator);
  </code></pre>
  
  <p>Works fine, but when it redirects to the view with the errors, it is showing me the field names exactly as the array, for example: "The name_field is already registered". How can I declare a custom name for every field? and for example have something like "The Name is already registered".</p>