Browse Source

Update BaseApiController

Daniel Supernault 5 năm trước cách đây
mục cha
commit
2a42a1c02e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/Http/Controllers/Api/BaseApiController.php

+ 1 - 1
app/Http/Controllers/Api/BaseApiController.php

@@ -227,7 +227,7 @@ class BaseApiController extends Controller
         }
 
         $monthHash = hash('sha1', date('Y').date('m'));
-        $userHash = hash('sha1', $user->id.(string) $user->created_at);
+        $userHash = hash('sha1', $user->id . (string) $user->created_at);
 
         $photo = $request->file('file');