You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using this within a typical request cycle the response that gets thrown when SPAM is detected is whatever SpamResponder is configured in the respond_to_spam_with config option. However, when using Livewire, the protectAgainstSpam method simply throws a 403:
abort(403, 'Spam detected.');
The Livewire protectAgainstSpam method should ideally return the configured SpamResponder:
throw new HttpResponseException(app(BlankPageResponder::class));
Of course, the BlankPageResponder class above will need to be replaced with whatever is configured in the respond_to_spam_with option.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
When using this within a typical request cycle the response that gets thrown when SPAM is detected is whatever
SpamResponder
is configured in therespond_to_spam_with
config option. However, when using Livewire, theprotectAgainstSpam
method simply throws a 403:The Livewire
protectAgainstSpam
method should ideally return the configuredSpamResponder
:Of course, the
BlankPageResponder
class above will need to be replaced with whatever is configured in therespond_to_spam_with
option.Beta Was this translation helpful? Give feedback.
All reactions