Updated functionality with override some QueryBuilder and EloquentModel methods.