Menu

## HolidaysImport
in package
implements ToCollection, WithHeadingRow

HolidaysImport.php : 22

Class HolidaysImport

Handles importing school holiday data from an Excel file. Uses heading rows to map columns and inserts holiday events for the current school and academic year.

### Table of Contents

#### Interfaces

ToCollection
WithHeadingRow

#### Methods

collection() : void
  Process the imported Excel rows.

### Methods

#### collection()

HolidaysImport.php : 33

Process the imported Excel rows.

`public collection(Collection $rows) : void`

Iterates through each row and creates a holiday event if it does not already exist for the same date and title.

##### Parameters

$rows : Collection

## Search results