The simplest method for converting HEIC (High-Efficiency Image Container) photos to JPEG using PHP and the Laravel framework is to use the php-heic-to-jpg PHP package.
This package also provides a convenience method to check if a file is a HEIC file:
You can learn more about this package, get full installation instructions, and view the source code on GitHub.