Fixed bugs in Eloquent provider.