Browse Source

fix uploads

pull/23/head v1.3.1
KodeStar 7 years ago
parent
commit
989989bda7
  1. 2
      app/Http/Controllers/ItemController.php
  2. 2
      resources/views/items/form.blade.php

2
app/Http/Controllers/ItemController.php

@ -192,7 +192,7 @@ class ItemController extends Controller
'title' => 'required|max:255',
'url' => 'required',
]);
//die(print_r($request->all()));
if($request->hasFile('file')) {
$path = $request->file('file')->store('icons');
$request->merge([

2
resources/views/items/form.blade.php

@ -47,7 +47,7 @@
</div>
<div class="upload-btn-wrapper">
<button class="btn">{{ __('app.buttons.upload')}} </button>
<input type="file" name="myfile" />
<input type="file" name="file" />
</div>
</div>
</div>

Loading…
Cancel
Save