infinity-next/sleuth (packagist): File type detection library built especially for Laravel.
Keywords: file|mime|type|detection|laravel|filetype-validator