1$file = public_path('storage/images/' . $value)
2
3if(! file_exists($file)){
4 return asset('storage/images/default.png');
5}
1// From https://laravel-news.com/testing-file-uploads-with-laravel
2
3Storage::disk('avatars')->assertExists('avatar.jpg');