Skip to content

Upload image with multiple sizes. (xs, sm, md and the original)

License

Notifications You must be signed in to change notification settings

MarkVilludo/image-upload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image-upload

Laravel package for upload image with auto generated multiple sizes

Installation

Require this package with composer.

composer require mark-villudo/image-upload

Usage - Generate multiple size

  //Get file and declare path to store image
  $file = $request->file('file');
  $origFilePath = '/storage/categories';
  
  //use helper to store images with multiple sizes
  storeImages($file, $origFilePath);

Usage - Upload single image

  //Get file and declare path to store image
  $file = $request->file('file');
  $origFilePath = '/storage/categories';
  
  //use helper to store single image
  storeSingleImage($file, $origFilePath);
  

Credits

Master Jes Dolfo.

Facebook Profile
<https://www.facebook.com/jesdolfo>

License

The MIT License (MIT). Please see License File for more information.

About

Upload image with multiple sizes. (xs, sm, md and the original)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages