lundi 2 novembre 2015

use Eloquent relationships while exporting data to Excel file in Laravel

I want to create a summary report of my two tables, one is employees table and the other one is sims table. These tables have one to many relationship. I know that we can export data of a model by using ->fromModel($model) but is there a way so I can generate the report based on the two tables?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire