Exporter keeps returning empty file

I am new to PHP and Filament and I am trying to build an exporter to export PricingImportLanes that have a matching pricing_import_id to the triggering PricingImport record. Essentially a user can upload an excel file (this is the pricing import) and each row is parsed out into a pricing import lane. I want the lanes to export to an excel file when that pricing_import's export button is clicked. At this time the column headers are the only thing in the spreadsheet that exports and the "exporting X row" always matches the number of rows in pricing_imports not the number of rows to be exported from pricing_import_lanes. I've attached a working exporter from our system that is similarly purposed and its models, as well as the PricingExporter that is not working and its models and resource. Looking forward to any assistance!
Solution:
Heh, I had to put it in a relation manager so it would return the data from there. I'm dumb. Case closed! πŸ’—
Jump to solution
1 Reply
Solution
DJ SneezyCheese
DJ SneezyCheeseβ€’2w ago
Heh, I had to put it in a relation manager so it would return the data from there. I'm dumb. Case closed! πŸ’—
Want results from more Discord servers?
Add your server