PHP code example of raditzfarhan / sahrule

1. Go to this page and download the library: Download raditzfarhan/sahrule 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/ */

    

raditzfarhan / sahrule example snippets


use RaditzFarhan\SahRule\Rules\Base64Image;

...

// will accept pre-defined allowed image types
$validatedData = $request->validate([
    'image' => ['

return [
    ...
    'base64_image' => 'Your custom validation message here.',
    ...
];