How to get extension from base64 image laravel
This package only tested on Laravel 5.4, 5.6, 5.6, 5.7 & 5.8 so if you have any problem or any question you can call me or open new issues
composer require bitstudio-id/bitgetextensionbase64image
add on top after <?php
use use BITStudio\BITGetExtensionBase64Image\GetExtension;
as simple as like this
return GetExtension::make($base64EncodeImage); // jpeg,png,txt.
The MIT License (MIT). Please see License File for more information.