PHP code example of rickselby / laravel-request-field-types
1. Go to this page and download the library: Download rickselby/laravel-request-field-types 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/ */
rickselby / laravel-request-field-types example snippets
$ composer
$this->setInputsFor(DateFieldType::class, ['start_date', 'end_date']);
// Passing a key => value pair allows extra rules to be added to an input field;
$this->setInputsFor(DateFieldType::class, ['start_date' => '
$this->setRules('otherfield', ['
$this->setFieldOrder(['field1', 'field2'...]);
$this->setMessage('start_date.