Excel Export – Import with Laravel Free Tutorial Download
These objects encapsulate the entire export or import process. The idea behind it is that you can neatly use these objects in controllers, services, jobs, event listeners or commands. In all of theses cases, the entire logic of how the export/import needs to happen is kept within this object.
#Data transfer object
The import/export objects are in essence simple data transfer objects (DTO). This means they will transfer the information you want to export/import to the Excel writer/reader. This information is not only the actual data you want to export, but also additional information like the styling of the file, the name of the worksheet, the number format of the cell etc.
In most cases, this means that your code doesn’t need to have direct exposure to the actual read/write process.
#Plain Old PHP Obj