anilkumar / makeimage
access image which is saved in storage
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
pkg:composer/anilkumar/makeimage
Requires
- php: >=5.4.0
- illuminate/support: 4.2.*
- intervention/image: *
This package is not auto-updated.
Last update: 2025-12-20 23:47:17 UTC
README
This package helps in accessing the images which are stored in storage directory of laravel
Requirements
- PHP >=5.3
- Image Intervention
Getting started
- Use composer to install the package
# sudo composer require "anilkumar/makeimage"
- Once MakeImage is installed, you need to register Laravel service provider, in your
app/config/app.php:
'providers' => array( ... 'Anilkumar\Makeimage\MakeimageServiceProvider' )
Code Examples
-
Suppose an image is stored in this path
ProjectName/app/storage/one.png -
You can access that image
<img src='make/image/one.png'> -
If image is stored in deep directory structure
ProjectName/app/storage/files/product/images/one.png -
You can access that image by replacing '/' with ':'
<img src="make/image/files:product:images:one.png"> -
Make sure that image should have readable permissions
License
Intervention Image is licensed under the MIT License.
Copyright 2015 Anil kumar