<?php use Illuminate\Support\Facades\Storage; if (!function_exists('file_exists_in_storage')) { function file_exists_in_storage($folder, $filename) { $filePath = $folder . '/' . $filename; return Storage::exists($filePath); } }