title: Validate header rows different from database column names with Laravel Excel
body: <p>I'm using the following package <a href="https://laravel-excel.com/" rel="nofollow noreferrer">https://laravel-excel.com/</a> to import excel files but have run into a problem while validating the rows.</p>
  
  <p>The header row names might be different from the column names in the database. So my question is how can I validate the header rows with a different name? For example the database column name is <code>first_name</code> but the header row name can be either <code>first_name</code> or <code>voornaam</code>.</p>
  
  <p>I was also wondering why the <code>:message</code> isn't using the localization <code>:attribute</code> from the language files. For example the attribute <code>first_name</code> is translated in lang/nl/validation.php as <code>voornaam</code> the error message still returns <code>first_name</code>.</p>
  
  <p>The import function:</p>
  
  <pre><code>public function model( array $row )
  {
          return new Participant([
              'salutation' =&gt; $row['salutation'] ?? $row['aanhef'] ?? null,
              'first_name' =&gt; $row['first_name'] ?? $row['voornaam'] ?? $row['voorletters'] ?? $row['voorletter'],
              'last_name' =&gt; $row['last_name'] ?? $row['achternaam']
       ]);
  }
  </code></pre>
  
  <p>The validation rules:</p>
  
  <pre><code>public function rules(): array
  {
          return [
              'salutation' =&gt; 'nullable|string',
              'first_name' =&gt; 'required|string',
              'last_name' =&gt; 'required|string',
         ]
  }
  </code></pre>
  
  <p>I have tried to use the <code>customValidationAttributes</code> but that doesn't work. Also made a <a href="https://github.com/Maatwebsite/Laravel-Excel/issues/2354" rel="nofollow noreferrer">issue</a> about it but so far no response.</p>
  
  <pre><code>public function customValidationAttributes()
  {
      return [
          'salutation' =&gt; 'salutation',
          'aanhef' =&gt; 'salutation',
          'first_name' =&gt; 'first_name',
          'voornaam' =&gt; 'first_name',
          'last_name' =&gt; 'last_name',
          'achternaam' =&gt; 'last_name'
       ]
   }
  </code></pre>