We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2ed1ce commit b63e958Copy full SHA for b63e958
src/Fieldtypes/Assets/Assets.php
@@ -161,7 +161,7 @@ public function process($data)
161
$max_files = (int) $this->config('max_files');
162
163
$values = collect($data)->map(function ($id) {
164
- return Asset::find($id)->path();
+ return Asset::findOrFail($id)->path();
165
});
166
167
return $this->config('max_files') === 1 ? $values->first() : $values->all();
0 commit comments