('Laravel').trim).isEmpty(); // false isNot TheNotEmpty method determines if the given string is not empty: Str(' ').trim).isNotEmpty(); // false Str('Laravel').trim).isNotEmpty(); // true isJson TheJson method determines if a given string is valid JSON: Str...
The Laravel Advanced String package by default adds macros to the Str class so your can access the extended functionality immediately Str::redactSsn('123-45-6789') Available Methods advPassword Generates a random, secure password. public static function advPassword( $length = 32, $letters = true...
* Generate a random alpha or alpha-numeric string. * 生成随机的字母或字母数字字符串。 ** // Generate a 40 character random alpha-numeric string * echo Str::random(40); * * // Generate a 16 character random alphabetic string * echo Str::random(16, 'alpha'); ** * @param int $leng...
Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {{ message }} laravel / framework Public Notifications You must be signed in to change notification settings Fork 11.3k Star 33.3k ...
[READ ONLY] Subtree split of the Illuminate Support component (see laravel/framework) - support/Str.php at master · illuminate/support