Brentford secured a comfortable 3-1 win over Bristol City, with striker Ivan Toney breaking the Championship's goal scoring record.