/** * Constructor method for abstract model class */ public function __construct() { $this->connection = app('connection'); $this->collection = new Query($this->connection->collection($this->getCollectionName())); }