@@ -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 |
@@ -60,8 +60,9 @@ |
||
60 | 60 | { |
61 | 61 | $app_url = config('app.url'); |
62 | 62 | |
63 | - if (!isset($_SERVER['SERVER_PORT'])) |
|
64 | - return $app_url; |
|
63 | + if (!isset($_SERVER['SERVER_PORT'])) { |
|
64 | + return $app_url; |
|
65 | + } |
|
65 | 66 | |
66 | 67 | $parsed_url = parse_url($app_url); |
67 | 68 | if (!isset($parsed_url['port']) |