Проверьте, существует ли файл 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');
}
@if(file_exists('favicon.ico'))
File exists
@else
Could not find file
@endif