Rudy
01/10/2022, 6:34 PMRudy
01/11/2022, 6:03 AMphp artisan vendor:publish --provider="A17\Twill\Image\TwillImageServiceProvider" --tag=config
No publishable resources for tag [config].
Publishing complete.Rudy
01/11/2022, 6:12 AMJohnny Maynne
01/11/2022, 5:44 PMHarings Rob
01/11/2022, 6:01 PMifox
01/11/2022, 6:02 PMJohnny Maynne
01/11/2022, 6:03 PMJohnny Maynne
01/11/2022, 6:03 PMifox
01/11/2022, 6:08 PMJohnny Maynne
01/11/2022, 6:13 PMamargoCactus
01/11/2022, 6:40 PMamargoCactus
01/11/2022, 6:40 PMpboivin
01/11/2022, 6:54 PM@push('extra_css')
/* your custom styles here */
@endpushonissay
01/11/2022, 8:54 PMRudy
01/12/2022, 7:37 AMHarings Rob
01/12/2022, 8:25 AMHarings Rob
01/12/2022, 8:25 AMRudy
01/12/2022, 8:44 AMA17\Twill\Services\MediaLibrary\Glide::getUrlWithCrop(): Argument #2 ($cropParams) must be of type array, Illuminate\Database\Eloquent\Relations\MorphPivot given, called inRudy
01/12/2022, 8:45 AM@php
$images = $block->images('image', 'flex');
$image = $block->image('image', 'flex');
$imageObject = $block->imageObject('image', 'flex');
$source = $imageObject->source;
@endphp
@foreach($images as $image)
<div class="col-md-4 d-flex align-items-center justify-content-center">
<a href="{{ $source }}" title="{{ $block->input('title') }}" class="service-details__image" rel="nofollow">
<img class="img-fluid" src="{{ $image }}" alt="{{ $block->input('alt') }}" title="{{ $block->input('title') }}">
</a>
</div>
@endforeachSebastianpusch
01/12/2022, 9:01 AMHarings Rob
01/12/2022, 9:04 AMphp
@foreach($block->imageObjects('image', 'flex') as $image)
<div class="col-md-4 d-flex align-items-center justify-content-center">
<a href="{{ $image->source }}" title="{{ $block->input('title') }}" class="service-details__image"
rel="nofollow">
<img class="img-fluid"
src="{{ \A17\Twill\Services\MediaLibrary\ImageService::getUrlWithCrop($imageObject->uuid, $imageObject->pivot) }}"
alt="{{ $block->input('alt') }}"
title="{{ $block->input('title') }}">
</a>
</div>
@endforeachRudy
01/12/2022, 9:05 AMRudy
01/12/2022, 9:06 AMA17\Twill\Services\MediaLibrary\Glide::getUrlWithCrop(): Argument #2 ($cropParams) must be of type array, Illuminate\Database\Eloquent\Relations\MorphPivot given, called inHarings Rob
01/12/2022, 9:06 AMHarings Rob
01/12/2022, 9:07 AM[]Rudy
01/12/2022, 9:10 AMError
Cannot use [] for readingHarings Rob
01/12/2022, 9:11 AMsrc="{{ \A17\Twill\Services\MediaLibrary\ImageService::getUrlWithCrop($imageObject->uuid, []) }}"Rudy
01/12/2022, 9:14 AMRudy
01/12/2022, 9:14 AMHarings Rob
01/12/2022, 9:16 AM