How to create a realistic depth of field

I have looked up many tutorials on this subject, yet many of the videos made are either outdated or do not work. I am currently using Gaussian as a placeholder until I can find a worthy substitute.