fix toggleWebNotifications method name
This commit is contained in:
1 parent
368465b8f3
commit
3528df0571
1 file changed
+1
-1
@@ -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 {
|
try {
|
||||||
$user = User::findOrFail($id);
|
$user = User::findOrFail($id);
|
||||||
$user->web_notifications = !$user->web_notifications ? 0 : 1;
|
$user->web_notifications = !$user->web_notifications ? 0 : 1;
|
||||||
|
|||||||
Reference in new issue
Block a user