$file = public_path('storage/images/' . $value) if(! file_exists($file)){ return asset('storage/images/default.png'); }