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() ?
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.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community