Support the ongoing development of Laravel.io →
Cache Architecture

Hi, I am using intervention and want to implement the 'URL based image manipulation' for images. I set the config file for that and prepare image url:

$url = Url::to('img_cached/thumb50/test.jpg);

I wonder if is there any way to check if image exist before use it at the img tag? I mean rather that using php file_exist() ?

Last updated 3 years ago.
0

There's not much point in doing so as intervention does everything for you. If the image does not exist, Intervention creates the file, adds it to the cache and serves it. If it does exists, it served straight from the cache for you.

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

shahroq shahroq Joined 14 Jun 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.