savanihd / image-upload-laravel
laravel image upload
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 2
Open Issues: 0
pkg:composer/savanihd/image-upload-laravel
This package is auto-updated.
Last update: 2025-09-29 02:42:41 UTC
README
Install Package By using bellow command:
composer require savanihd/image-upload-laravel
You need to update on config/app.php file
'providers' => [
...
SavaniHD\ImageUploadLaravel\ImageUploadLaravelServiceProvider::class
]
'aliases' => [
...
'ImageUploadLaravel' => SavaniHD\ImageUploadLaravel\Facades\ImageUploadHDLaravelFacade::class,
]
You can use as bellow: upload method will return name of uploaded file. if you upload same file name file than it will return name like this way: test.png. test-1.png, test-2.png etc Syntax:
ImageUploadLaravel::upload(file_object, folder_path)
Example:
$fileName = ImageUploadLaravel::upload($request->image, public_path('images'))
dd($fileName);
Supported By: https://itsolutionstuff.com