@@ -5,7 +5,6 @@ |
||
5 | 5 | use Encore\Admin\Form; |
6 | 6 | use Illuminate\Support\Facades\Storage; |
7 | 7 | use Illuminate\Support\Facades\URL; |
8 | -use Illuminate\Support\MessageBag; |
|
9 | 8 | use Symfony\Component\HttpFoundation\File\UploadedFile; |
10 | 9 | |
11 | 10 | trait UploadField |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | ]; |
77 | 77 | |
78 | 78 | if ($this->form instanceof Form) { |
79 | - $defaultOptions['deleteUrl'] = $this->form->resource() . '/' . $this->form->model()->getKey(); |
|
79 | + $defaultOptions['deleteUrl'] = $this->form->resource().'/'.$this->form->model()->getKey(); |
|
80 | 80 | } |
81 | 81 | |
82 | 82 | $this->options($defaultOptions); |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | */ |
310 | 310 | protected function generateUniqueName(UploadedFile $file) |
311 | 311 | { |
312 | - return md5(uniqid()) . '.' . $file->getClientOriginalExtension(); |
|
312 | + return md5(uniqid()).'.'.$file->getClientOriginalExtension(); |
|
313 | 313 | } |
314 | 314 | |
315 | 315 | /** |