switch to eloquent from query builder