PHP code example of thedavefulton / laravel-exclusive-validation-rules
1. Go to this page and download the library: Download thedavefulton/laravel-exclusive-validation-rules 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/ */
thedavefulton / laravel-exclusive-validation-rules example snippets
app/config.php php
'providers' => [
// Other Service Providers
Thedavefulton\ExclusiveValidationRulesServiceProvider::class,
],
php
$attributes= $request->validate([
'input1' => 'ributes= $request->validate([
'input1' => 'optional_exclusive:input2',
'input2' => 'optional_exclusive:input1',
]);