copy Ryan's EloquentStatementRepository exactly