Copyright © Stillat.com—A site by John Koster

Category

Laravel 5

1 min John Koster - 1 week ago

Laravel 5 String Helpers: Generating Random Strings

The random helper method generates a random string of the specified $length. This method internally uses the OpenSSL function openssl_random_pseudo_bytes, and therefore requires the OpenSSL extension to be installed and configured. Signature The...

3 min John Koster - 1 week ago

Laravel 5 String Helpers: Getting the Singular Form of a String Value

The singular helper method is the logical opposite to the plural method: it will attempt to take a given $value and return the singular form of that word. The internal mechanisms are similar to the plural method. Signature The signature of the...

2 min John Koster - 1 week ago

Laravel 5 String Helpers: Parse Callback

parseCallback is a fairly simple method, even though it serves a somewhat specialized purpose. The following syntax for class names and method names can be found utilized throughout the Laravel framework: ClassName@someMethodName The point is that...

4 min John Koster - 1 week ago

Laravel 5 String Helpers: Pluralization and Strings

The plural helper method will attempt to return a plural version of the given $value. It does this through a series of specialized internal functions, that will not be covered in great detail here. This helper method will apply general rules to...

1 min John Koster - 1 week ago

Laravel 5 String Helpers: Replacing the First Occurrence of a Value

The replaceFirst helper method is used to replace the first occurrence of a given $search string with the provided $replace string in the $subject string. All three parameters are required and must be strings. Signature The signature of the...

Subscribe to the Mailing List

Join the mailing to list to receive product and blog post updates