nickurt / laravel-akismet

Akismet for Laravel 10.x/11.x
MIT License
90 stars 11 forks source link

Added ability to set userIp, userAgent and referrer #11

Closed lhilton closed 8 years ago

lhilton commented 8 years ago

Need to be able to store some values to allow akismet to be checked as a queued job instead of a realtime task.

lhilton commented 8 years ago

Cancelling PR. Change made against wrong branch, strategy used also not correct.

lhilton commented 8 years ago

Reopened PR after improving solution. Individual setters are still available, but my primary mechanism for queued job support now comes from serializing out the Akismet instance at the time the form is submitted:

$submission->akismet_data = \Akismet::toArray();

Then I can continue processing later in a queued job:

if(Akismet::fill($submission->akismet_data)->$ak->isSpam()) { ... }

nickurt commented 8 years ago

Thanks :+1:, I merged it into the guzzle branch, will tag/update master later this week.