PHP code example of almazary / laravel-word-censor
1. Go to this page and download the library: Download almazary/laravel-word-censor 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/ */
almazary / laravel-word-censor example snippets
use Almazary\LaravelWordCensor\LaravelWordCensorFacade;
$a = LaravelWordCensorFacade::replace('bigger boob');
// result: bigger ***
protected $middleware = [
...,
...,
\Almazary\LaravelWordCensor\Middleware\Replace::class,
];