PHP code example of opiy-org / laravel-sanitized

1. Go to this page and download the library: Download opiy-org/laravel-sanitized 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/ */

    

opiy-org / laravel-sanitized example snippets


use OpiyOrg\LaravelSanitized\Sanitized;

class YoutModel extends Model
{
    use Sanitized;
    ...

  protected array $fieldsToSanitize = [
    'body',
    'description',
    ...
  ];
bash 
php artisan vendor:publish --provider=OpiyOrg\LaravelSanitized\LaravelSanitizedServiceProvider"