Created
June 1, 2020 15:31
-
-
Save eS-IT/6c367dae10e77d1030a61345e1de47b8 to your computer and use it in GitHub Desktop.
fakerToolbox_internetAddress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$GLOBALS['TL_DCA']['tl_member']['fields']['website']['eval']['fakerMethod'] = 'internetAddress'; | |
$GLOBALS['TL_DCA']['tl_member']['fields']['website']['eval']['fakerParameter'] = [['https://', 'http://']]; // kann entfallen, da diese Protokolle der Standardfall sind. | |
$GLOBALS['TL_DCA']['tl_member']['fields']['website']['eval']['fakerOptional'] = [0.9, '']; // 10% chance of getting emtpy string |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment