Skip storage:: facade on missing images

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2022-11-01 18:19:13 -07:00
parent 761da534f3
commit fa79a6c15f

View file

@ -149,8 +149,8 @@
<td>
{{ $file->filename }}
</td>
<td data-value="{{ Storage::size('private_uploads/consumables/'.$file->filename) }}">
{{ Helper::formatFilesizeUnits(Storage::size('private_uploads/consumables/'.$file->filename)) }}
<td data-value="{{ (Storage::exists('private_uploads/consumables/'.$file->filename) ? Storage::size('private_uploads/consumables/'.$file->filename) : '') }}">
{{ @Helper::formatFilesizeUnits(Storage::exists('private_uploads/consumables/'.$file->filename) ? Storage::size('private_uploads/consumables/'.$file->filename) : '') }}
</td>
<td>