rap2hpoutre / fast-excel

🦉 Fast Excel import/export for Laravel
MIT License
2.08k stars 246 forks source link

Added support for stdClass collections #329

Open obrunsmann opened 1 year ago

obrunsmann commented 1 year ago

Problem:

When creating export from a custom statement like

\DB::table('users')→select('email', 'name')→get()

Each row is an instance of \stdClass and we cannot access toArray(). This PR catches the case of a \stdClass row and converts it to an array.

obrunsmann commented 9 months ago

@rap2hpoutre can this be merged?