Looking to hire Laravel developers? Try LaraJobs

laravel-glide maintained by ycs77

Description
Glide image manipulation for Laravel.
Author
Last update
2026/04/02 10:35 (dev-allow-glide-3)
License
Downloads
66

Comments
comments powered by Disqus

Glide for Laravel

Latest Version on Packagist Software License Style CI Build Status Total Downloads

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/.