avast / thumbs
Avast thumbs package
dev-master
2025-03-24 07:10 UTC
Requires
- php: >=7.1
This package is auto-updated.
Last update: 2025-03-24 07:10:27 UTC
README
composer require avast/thumbs
php artisan avast-thumbs:install
Routes
require __DIR__.'/thumbs.php';
Model trait
use \Avast\Thumbs\Traits\Thumbs;
Usage
Create thumb via admin Tools->Thumbs
Then use in blade {{ $model->thumb('[image attribute]
', '[thumb mark]
') }}
For multiple images
@if($it->thumbGallery('gallery')) @foreach($it->thumbGallery('gallery') as $image) <img src="{{ $it->thumb($image, 'big') }}"> @endforeach @endif