fix toggleWebNotifications method name
This commit is contained in:
@@ -364,7 +364,7 @@ class UserController extends Controller
|
||||
}
|
||||
}
|
||||
|
||||
public function togglWebNotifications(Request $request, int $id): JsonResponse {
|
||||
public function toggleWebNotifications(Request $request, int $id): JsonResponse {
|
||||
try {
|
||||
$user = User::findOrFail($id);
|
||||
$user->web_notifications = !$user->web_notifications ? 0 : 1;
|
||||
|
||||
Reference in New Issue
Block a user