anilkumar/makeimage
Composer 安装命令:
composer require anilkumar/makeimage
包简介
access image which is saved in storage
README 文档
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
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-05-21