title: use Eloquent relationships while exporting data to Excel file in Laravel
body: <p>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
  <code>-&gt;fromModel($model)</code>
  but is there a way so I can generate the report based on the two tables?</p>