Laravel 3 had a File::mime() method which made it easy to get a file\'s mime type from its extension:
$extension = File::extension($path);
$
After reading that:
I decided instead to port Laravel 3's implementation of File::mime() into a helper library within my Laravel 4 application. The Laravel 3 implementation just reads the MIME types from a config lookup array, based on file extension.
Solution: