Simple Laravel Validation Rule to check Malicious Content in File

Been watching LaraconEU, i realized that i need to validate the content of the image. Currently use Clamav but somehow it’s not detect RCE injection tools in image.

RCE injection toolshttps://github.com/ambionics/phpggc

When i use the RCE tools, i found that there is specific string injected to the file like __HALT_COMPILER