Getting started with Laravel and Backpack, building a web app that I'm migrating from an old PHP codebase.
Part of the migration is importing several tables full of data (bookings, users, bookable items) from the old application.
I have a Laravel class for each import task (BookingsImport, UsersImport, ItemsImport) that fetch the data from the old web site and for each table row create a new entry using the correct Laravel model (Booking::create, User::create, Item::create). The import classes also take care of new field names and necessary data transformations to make things work in the new Laravel app.
From a design perspective, where would you put these importer classes?
I suppose technically they belong in the custom Backpack controller I'm using to start the import. But that feels... wrong. The controller is there to dispatch the action, not to contain too much logic, right? Having it in the Laravel models feels wrong, too.
Am I supposed to simply create a new folder, say, "Importers" in the "App" folder? I can do that, but if there is a Laravel-y standard, I'd much rather follow that.