PHP code example of vigstudio / laravel-stopforumspam

1. Go to this page and download the library: Download vigstudio/laravel-stopforumspam library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

vigstudio / laravel-stopforumspam example snippets


// FormRequest ...

public function rules()
{
    return [
        'email' => ['mail' => ['

// FormRequest ...

public function rules()
{
    return [
        'ip' => ['['ip' => ['

// FormRequest ...

public function rules()
{
    return [
        'username' => ['name' => ['

\StopForumSpam::setEmail('[email protected]')->isSpamEmail();

\StopForumSpam::setIp('8.8.8.8')->isSpamIp();

\StopForumSpam::setUsername('nickurt')->isSpamUsername();

php artisan vendor:publish --provider="nickurt\StopForumSpam\ServiceProvider" --tag="config"