Skip to content

Commit

Permalink
added attempts to rate
Browse files Browse the repository at this point in the history
  • Loading branch information
A1Gard committed Sep 24, 2024
1 parent 0f8b99c commit 11ea1cb
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion app/Http/Controllers/ClientController.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ public function search(Request $request)
{



if (isGuestMaxAttemptTry('search', 5, 1)) {
return abort(403);
}
Expand Down Expand Up @@ -736,7 +737,18 @@ public function rate(Request $request)
'rateable_type' => ['required', 'string'],
]);

// return $request->all();

// return $request->all();

if (isGuestMaxAttemptTry('rate', 5, 10)) {
return [
'OK' => false,
'message' => __('You try attempts, Try it a few minutes'),
'error' => __('You try attempts, Try it a few minutes'),
];
}

guestLog('rate');

$changed = false;
foreach ($request->rate as $k => $rt) {
Expand Down

0 comments on commit 11ea1cb

Please sign in to comment.