Validieren Sie Säulen Laravel Excel

public function import()
{
  $columns = (new HeadingRowImport)->toArray('users.xlsx');

  if (isset($column['firstname']) && isset($column['lastname']) &&  isset($column['username'])) {
    // columns found - put your code here
  }else{
    // columns not all found, handle error here
  }
}
Literate Lentil