diff --git a/app/Http/Controllers/SaveController.php b/app/Http/Controllers/SaveController.php index d13a0be..507fb97 100644 --- a/app/Http/Controllers/SaveController.php +++ b/app/Http/Controllers/SaveController.php @@ -13,7 +13,6 @@ use Illuminate\Http\Resources\Json\AnonymousResourceCollection; use Illuminate\Http\Resources\Json\JsonResource; use Illuminate\Http\Response; -use Illuminate\Support\Facades\Auth; /** * Controller, welcher Routen zum Verwalten von Speicherständen implementiert diff --git a/app/Models/User.php b/app/Models/User.php index 9bca8b8..aa0c6d3 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -195,7 +195,7 @@ public function sharedSaves(): HasMany * @param bool $withPivot Ob die Pivot Tabelle mitgeladen werden soll * @return BelongsToMany */ - public function accessibleShares(bool|array $withPivot = true): BelongsToMany + public function accessibleShares(bool $withPivot = true): BelongsToMany { $q = $this->belongsToMany(Save::class, 'shared_save')->using(SharedSave::class) ->withPivotValue("accepted", true)