Compruebe si existe el archivo Laravel
$file = public_path('storage/images/' . $value)
if(! file_exists($file)){
return asset('storage/images/default.png');
}
Lokesh003
$file = public_path('storage/images/' . $value)
if(! file_exists($file)){
return asset('storage/images/default.png');
}
// From https://laravel-news.com/testing-file-uploads-with-laravel
Storage::disk('avatars')->assertExists('avatar.jpg');