### Install via Composer Source: https://github.com/crazybooot/base64-validation/blob/master/README.MD Install the package into a Laravel project using Composer. Requires PHP 7.1+ and Laravel 5.5+. ```bash $ composer require crazybooot/base64-validation ``` -------------------------------- ### Use base64dimensions validation rule Source: https://github.com/crazybooot/base64-validation/blob/master/README.MD Apply base64 validation rules like standard Laravel rules. This example uses base64dimensions with min_width and min_height parameters. ```php public function rules(): array { return [ 'attachment' => 'sometimes|base64dimensions:min_width=100,min_height=200', ]; } ``` -------------------------------- ### Publish config for custom localization Source: https://github.com/crazybooot/base64-validation/blob/master/README.MD Publish the package config to customize validation messages. Set replace_validation_messages to false in config/base64validation.php to use your own localizations. ```bash php artisan vendor:publish --provider="Crazybooot\Base64Validation\Providers\ServiceProvider" --tag=config ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.