Showing 10 of 2,044 results.

Laravel Artisan Tinker: The buffer Command

The buffer command is useful when entering multi-line expressions. It can be used at any time to view the contents of the buffer when entering multi-line expressions without interrupting the expression input. The following example sessions...

Laravel 5: Encrypting Strings With encrypt

The encrypt helper function can be used to encrypt a given string value. The function resolves the configured "Illuminate\Contracts\Encryption\Encrypter" implementation from the Service Container and then calls the encrypt method on the Encrypter...

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 .

Laravel Array Helper Function: array_fetch

…in favor of the pluck helper function. Additionally, the An Extended Example of Retrieving Unique Data Using Laravel Helper Functions article from the original publication provides other uses for Laravel's array helper functions. The fetch helper...

Laravel Artisan Tinker: The throw-up Command

The throw-up command can be used to re-throw an exception out of a Tinker REPL session. By default, it throws the exception that last occurred, but will accept an exception instance as an argument: 1 >>> throw new Exception("An example...

Message Tags | Laravel String Pluralization

…returning the appropriate message for a given plural form of a message. This can be observed in the following code example (the result of the function call will appear above the function call as a comment): 1 <?php 2 3 // There is one book. 4...

Read the Docs | Rebuilding Stillat.com

…nation and a little bit of determination. I don't want to turn this section into a full review of Statamic (I'm sure this will come in some form in the future), but if you have some time and are looking to try something refreshingly well-built,...