@@ -76,7 +76,7 @@ |
||
| 76 | 76 | /** @var \App\Models\User $me */ |
| 77 | 77 | $me = app('sentinel')->getUser(); |
| 78 | 78 | |
| 79 | - $file = $me->with(['files' => function (BelongsToMany $query) use ($hash) { |
|
| 79 | + $file = $me->with(['files' => function(BelongsToMany $query) use ($hash) { |
|
| 80 | 80 | $query->where('hash', '=', $hash); |
| 81 | 81 | }])->first()->files->first(); |
| 82 | 82 | |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | $tagLimit = config('filesystems.allowed_tags_and_limits.' . $tag); |
| 50 | 50 | if ($tagLimit > 0) { |
| 51 | 51 | $allFilesWithSameTagBelongingToUser = $me->load([ |
| 52 | - 'files' => function (BelongsToMany $query) use ($tag) { |
|
| 52 | + 'files' => function(BelongsToMany $query) use ($tag) { |
|
| 53 | 53 | $query->wherePivot('tag', '=', $tag); |
| 54 | 54 | } |
| 55 | 55 | ])->files; |