Posted: 18-05-2017

Laravel Custom Validation – mp3, ogg extension files only

In these days I'm working to an aplication that need to upload  mp3 files and I've some trouble about validate mp3 files because seems Laravel don't provide a method thist task. 

After googling I've found this nice tutorial that explain how to validate audio file in Laravel

I know what you are thinking. You are thinking what’s even the need of this topic. I mean sure with Laravel’s in-built Validator class, validation at server side has become easier as ever. But, Laravel’s validation class does screw from time to time and then you have to resort to some custom solution, like I did.