Skip to content

Commit 04c5a77

Browse files
committed
♻️ refactoring
1 parent 1475c73 commit 04c5a77

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

app/Http/Controllers/SubscriptionController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function unsubscribe(Subscribe $subscription)
2020

2121
public function redirect($id, $type)
2222
{
23-
$subscribe = Subscribe::where('subscribeable_id', $id)->where('subscribeable_type', $type)->firstOrFail();
23+
$subscribe = Subscribe::where('subscribeable_id', $id)->where('subscribeable_type', $type)->firstOrFail();
2424

2525
return redirect(route_to_reply_able($subscribe->subscribeAble));
2626
}

app/Http/Livewire/NotificationIndicator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function render()
2525
);
2626

2727
return view('livewire.notification-indicator', [
28-
'hasNotification' => $this->hasNotification
28+
'hasNotification' => $this->hasNotification,
2929
]);
3030
}
3131
}

app/Http/Livewire/User/Settings/Notifications.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
namespace App\Http\Livewire\User\Settings;
44

55
use App\Models\Subscribe;
6-
use App\Policies\DiscussionPolicy;
7-
use App\Policies\ThreadPolicy;
86
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
97
use Illuminate\Support\Facades\Auth;
108
use Livewire\Component;

0 commit comments

Comments
 (0)