No shadows on transparent object ( Blender 2.8 ) EDIT: I've found a  solution that works in my case, i've posted that solution below.

EDIT 2: Fixed "Eevee settings" to "Material settings in Eevee"

So I've got a couple bushes in a scene and I noticed that they do not have any shadows on them, they cast shadows themselves but they don't catch shadows, I don't know if this is due to my node setup or some kind of inherent property of transparent textures, any suggestions/help would be greatly appreciated.

I've included pictures of the issue, node setup and settings below.

Issue in Eevee:



Issue in Cycles:



Node Setup:



Material settings in Eevee:
I figured it out, turns out it was my node setup and isn't specific to transparency either.

The issue is that plugging the mix shader into a proper shader (Principled for example.) would cause my textures to display as purple, so instead I plugged directly from the mix shader into the material output, this is what causes the issue. 

To avoid it you can simply plug the image texture into a separate shader and then plug that shader into the mix shader instead of directly from texture to mix shader.

Hopes this helps someone else, I struggled with it for a while.