PHP code example of swatty007 / laravel-context-prohibited-rule

1. Go to this page and download the library: Download swatty007/laravel-context-prohibited-rule 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/ */

    

swatty007 / laravel-context-prohibited-rule example snippets


'context_prohibited' => 'Your :attribute shall not contain any of the following words: :prohibited',

php artisan vendor:publish --provider="Swatty007\LaravelContextProhibitedRule\ContextProhibitedServiceProvider"
 context_prohibited 

'password' => 'context_prohibited'
// or preferred
'password' => ['

return Validator::make($data, [
    'name' => 'unique:users',
    'password' => '