check if file exists laravel storage code example
Example 1: check if file exists laravel
$file = public_path('storage/images/' . $value)
if(! file_exists($file)){
return asset('storage/images/default.png');
}
Example 2: laravel storage check file exists
Storage::disk('public')->exists($image)