Silent %!s(int64=6) %!d(string=hai) anos
pai
achega
29e9e45080
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      app/Http/Controllers/Admin/SettingController.php

+ 3 - 2
app/Http/Controllers/Admin/SettingController.php

xqd
@@ -118,10 +118,11 @@ class SettingController extends Controller
         $size = $image->filesize();
 
         $name = uniqid();
+        $dir = 'tmp/share/' . date("Ymd");
         $path = 'tmp/share/' . date("Ymd") . '/' . $name . '.png';
         $full_path = '/' . $path;
-        if(!\File::isDirectory($path)) {
-            \File::makeDirectory($path, 493, true);
+        if(!\File::isDirectory($dir)) {
+            \File::makeDirectory($dir, 493, true);
         }
         $image->save($path);