updated to reflect latest changes in Eloquent