Overview

In the previous episode, we used the query builder to fetch the relevant posts from the database. However, there's a second option we should consider: Eloquent. Not only does an Eloquent class provide the same clean API for querying your database, but it's also the perfect place to store any appropriate business logic.

BIOPHARMA   AFFILIATE  COMPANIES