PHP code example of smart-over / base64-validation
1. Go to this page and download the library: Download smart-over/base64-validation 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/ */
smart-over / base64-validation example snippets
public function rules(): array
{
return [
'attachment' => 'sometimes|base64dimensions:min_width=100,min_height=200',
];
}