Showing 10 of 1,278 results.

Laravel Artisan Key Command: The key:generate Command

The key:generate command is used to generate a random key. This command will update the key stored in the application's environment file. The command also supports an optional --show flag. Specifying this flag will simply show the generated key...

Laravel Miscellaneous Helper Function: trait_uses_recursive

trait_uses_recursive($trait) The trait_uses_recursive function will return an array of all the traits that are used by a class. It will also return any traits that the traits are using. Given the traits and class: 1 <?php 2 3 trait TraitOne { } 4...

Laravel Collection Public API: isEmpty

isEmpty The isEmpty can be used to determine if the collection has items or not. If the collection has no items, true will be returned, otherwise false will be returned. 1 <?php 2 3 use Illuminate \ Support \ Collection ; 4 5 // Create a new...

Laravel 5: Decrypting Strings With decrypt

The decrypt helper function can be used to decrypt the provided value. The function resolves the configured Illuminate\Contracts\Encryption\Encrypter implementation from the Service Container and then calls the decrypt method on the Encrypter...

Laravel Helper Function: config

config($key = null, $default = null) The config helper function is a versatile function. If the supplied $key and $default value are both null, such as in the following method call: 1 <?php 2 3 // Calling the `config` function without any...

Filter Search