Skip to content

v0.4

Choose a tag to compare

@mattgorle mattgorle released this 09 Sep 13:59
· 17 commits to master since this release
5f5023f

Remove need to call glide_url->url() to get the URL

This release removes the requirement to call glide_url->url() to obtain the
image URL.

For example, it is now possible to do the following:

{{ glide_url('image_filename')->width(250)->jpeg() }}
{{-- obtain a JPEG --}}

{{ glide_url('image_filename')->width(250)->png() }}
{{-- obtain a PNG --}}

Previously, this would have been necessary:

{{ glide_url('image_filename')->width(250)->jpeg()->url() }}
{{-- obtain a JPEG --}}

{{ glide_url('image_filename')->width(250)->png()->url() }}
{{-- obtain a PNG --}}

This update maintains the original behaviour so there is no BC break.