fixed some fatal errors

pull/44/head
A1Gard 6 months ago
parent 6c21182f14
commit 4f0928f8e2

@ -32,6 +32,9 @@ class ImageController extends Controller
public function store(Request $request, Gallery $gallery)
{
$request->validate([
'image' => ['required']
]);
foreach ($request->file('image') as $k => $item) {

@ -177,5 +177,5 @@
{{--</div>--}}
<hr>
<div class="mt-4">
@include('components.panel-attachs',['attachs' => $item->attachs])
@include('components.panel-attachs',['attachs' => $item->attachs??[]])
</div>

Loading…
Cancel
Save