Skip to content

[13.x] feat: implement Responsable on Image class - #61111

Merged
taylorotwell merged 2 commits into
laravel:13.xfrom
calebdw:calebdw/push-ynusuwnlzyyn
Aug 9, 2026
Merged

[13.x] feat: implement Responsable on Image class#61111
taylorotwell merged 2 commits into
laravel:13.xfrom
calebdw:calebdw/push-ynusuwnlzyyn

Conversation

@calebdw

@calebdw calebdw commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Allow Image instances to be returned directly from routes and controllers by implementing the Responsable contract. The toResponse method returns an HTTP response with the processed image bytes and the appropriate Content-Type header, matching the pattern established by Intervention Image's Laravel package.

Thanks!

calebdw and others added 2 commits August 8, 2026 15:51
Allow Image instances to be returned directly from routes and
controllers by implementing the Responsable contract. The
toResponse method returns an HTTP response with the processed
image bytes and the appropriate Content-Type header, matching
the pattern established by Intervention Image's Laravel package.
@taylorotwell
taylorotwell merged commit 935b827 into laravel:13.x Aug 9, 2026
52 of 53 checks passed
@calebdw
calebdw deleted the calebdw/push-ynusuwnlzyyn branch August 9, 2026 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants