PHP code example of evo-mark / evo-laravel-profanity

1. Go to this page and download the library: Download evo-mark/evo-laravel-profanity 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/ */

    

evo-mark / evo-laravel-profanity example snippets


return [
    'includingWords' => [
        'en' => ['soccer']
    ],
    'excludingWords' => [
        'en' => []
    ]
];

public function store(Request $request)
{
    $validated = $request->validate([
        'email' => ['
bash
php artisan vendor:publish --tag="evo-laravel-profanity-config"
json
"scripts": {
    "post-autoload-dump": [
        "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
        "@php artisan profanity:update"
    ],
}