ycs77/laravel-glide
Composer 安装命令:
composer require ycs77/laravel-glide
包简介
Glide image manipulation for Laravel.
README 文档
README
Glide image manipulation for Laravel.
Install
Via Composer install:
composer require ycs77/laravel-glide
Publish config:
php artisan vendor:publish --provider="Ycs77\LaravelGlide\GlideServiceProvider"
Set the Glide route:
routes/web.php
use Ycs77\LaravelGlide\Facades\Glide; // Other routes ... Glide::route();
Usage
glide_url('avatar/user01-avatar.png', [ 'w' => '50', 'h' => '50', 'fit' => 'crop', ]); // https://example.test/img/avatar/user01-avatar.png/sds4d524g.../sd2g4e1drf2g...img.jpg?w=50&h=50&fit=crop
Or use Facade:
use Ycs77\LaravelGlide\Facades\Glide; Glide::url('avatar/user01-avatar.png', [ 'w' => '50', 'h' => '50', 'fit' => 'crop', ]); // https://example.test/img/avatar/user01-avatar.png/sds4d524g.../sd2g4e1drf2g...img.jpg?w=50&h=50&fit=crop
Full documation visit: https://glide.thephpleague.com/.
统计信息
- 总下载量: 66
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-06-01