First you need to install illuminate/validation by typing this composer require illuminate/validation:5.1.*.
Then, you can use laravel validation like this:
$validatorFactory = new ValidatorFactory;| ## Check information about the AD | |
| net ads info join status workgroup gpo dns user | |
| ## Commands for to verify the conection established with AD | |
| 1) sqlite3 /data/freenas-v1.db "UPDATE directoryservice_activedirectory SET ad_enable=1" | |
| 2) service ix-hostname start | |
| 3) service ix-kerberos start |
| /** | |
| * Axios Request Wrapper | |
| * --------------------- | |
| * | |
| * @author Sheharyar Naseer (@sheharyarn) | |
| * @license MIT | |
| * | |
| */ | |
| import axios from 'axios' |
| # --------------------------------------------------------------------------- | |
| # | |
| # Description: This file holds all my BASH configurations and aliases | |
| # | |
| # Sections: | |
| # 1. Environment Configuration | |
| # 2. Make Terminal Better (remapping defaults and adding functionality) | |
| # 3. File and Folder Management | |
| # 4. Searching | |
| # 5. Process Management |