Showing 10 of 1,280 results.

Laravel Array Helper Function: array_forget

forget(&$array, $keys) The forget helper method removes items from the given $array . The specified keys are express in dot notation.This function affects the original $array . Assuming an array is defined as follows: 1 <?php 2 3 use Illuminate \...

Laravel 5.5 String Helper Function: before

The before method can be used to return a part of a string before the first occurrence of a $search character. This method can be used to help parse URL query strings, or to quickly find substrings based on a certain character; it is the logical...

Laravel Collection Public API: keys

keys The keys method is used to retrieve the keys of all items in the collection. The keys method returns a new Collection instance. The following code example demonstrates the usage of the keys method: 1 <?php 2 3 use Illuminate \ Support \...

Laravel 5: Accessing and Sending HTTP Responses With response

The response helper function is a useful function that can be used to accomplish two different tasks. If no arguments are supplied to the response function, an implementation of Illuminate\Contracts\Routing\ResponseFactory will be returned (by...

Laravel Helper Function: decrypt

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

Laravel Task Scheduler: Limiting the Execution of Tasks

It is possible to limit the execution of tasks based on some criteria that developers define, as well as limit a tasks execution based on the current environment.Limiting the environments the task can run in is done using the...

Laravel 5: Determining if a Variable Holds a Value With blank

The blank function is used to determine if the provided value contains a value that is not null , or a non empty value. It can be useful to check arguments supplied to functions for values without having to check many different types specifically....

Laravel Application Helper Function: abort

abort($code, $message = '', array $headers = []) The abort function will throw an instance of Symfony\Component\HttpKernel\Exception\HttpException with the given $code , $message and any $headers supplied. These exceptions can be caught and...

Laravel Artisan Migration Command: The migrate:status Command

The migrate:status command can be used to check the status of each migration. The command will output a table that lists each migration and an indicator of whether or not the migration has been ran. The migrate:status command provides a few...