Vérifiez si le fichier existe 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');
}
$result = File::exists($myfile);
if (!file_exists('somefile.txt')) {
touch('somefile.txt', strtotime('-1 days'));
}